🧪 JavaScript MCQ Quiz Hub

JavaScript MCQ Questions And Answers Set 2

Choose a topic to test your knowledge and improve your JavaScript skills

1. "<script type=""text/javascript""> x=4+""4""; document.write(x); </script> Output------?"




2. Scripting language are




3. Which best explains getSelection()?




4. Choose the client-side JavaScript object:




5. What is mean by "this" keyword in javascript?




6. <script language="javascript"> function x() { document.write(2+5+"8"); } </script>




7. <script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /d{4}/; var output = s.match(pattern); document.write(output); </script>