If The User Presses Ok In The Dialog Box Then What Will Be The #269
If the user presses “ok” in the dialog box then what will be the output of the following JavaScript code?</p> <pre><code class="language-c"> function msg() { var v= confirm("Are u sure?"); if(v==true) { alert("yes"); } else { alert("no"); } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs106 Javascript. It can also be found in gs gs106 Server-Side and Client-Side JavaScript - Server-Side JavaScript - Quiz No.2.
Similar question(s) are as followings:
Online Quizzes of gs106 Javascript
Graphics and Rendering in JavaScript - Scripted Media - Quiz No.1
gs gs106 Javascript
Online Quizzes