A set of JavaScript multiple-choice questions has P3 answers

JavaScript has become something almost obvious, when everyone uses it. When you use Facebook, you use JavaScript. When you write a tweet you use JavaScript ... If you are learning about JavaScript, the quiz below will give you lots of useful information. Let's start.

  • Question 1. What is the prompt function (.) in JavaScript used for?

  • Displays information for entering information

  • Display a message Yes, No

  • There is no right option

  • Both forms above

  • Question 2. In JavaScript what does parseInt () function do?

  • Convert a string into numbers

  • Convert a string to a real number

  • Convert an integer into a string

  • Convert a string to an integer

  • Question 3. Perform the test if the variable 'i' is not equal to 5, which statement is correct?

  • if (i! = 5)

  • if i =! 5 then

  • Question 4. Which of the following IF statements is correct?

  • if (i == 5)

  • if i == 5 then

  • if i = 5 then

  • Question 5. Which JavaScript statement is correct to make changes in the HTML element below?

    Website TipsMake.com.

  • document.getElementById ("demo"). innerHTML = "Welcome to TipsMake.com!";

  • # demo.innerHTML = "Welcome to TipsMake.com!";

  • document.getElement ("p"). innerHTML = "Welcome to TipsMake.com!";

  • document.getElementByName ("p"). innerHTML = "Welcome to TipsMake.com!";

  • Question 6.

  • When running, open a new window to call TipsMake.com

  • Can't run because it's wrong

  • When finished, another site appears

  • There is only one TipsMake.com page

  • Question 7. Are there any ways to write JavaScript code to run in a web page?

  • Both forms of writing separate files or writing in HTML pages

  • Write together with HTML

  • Write on a separate file

  • Not in any form

  • Question 8. When does the OnMouseOver JavaScript event happen?

  • When an object in form loses focus

  • When moving the mouse over an object in the form

  • When you click your mouse on the command button

  • When an object in the form receives focus

  • Question 9. In when JavaScript Onclick event occurs when?

  • When an object in the form receives focus

  • When an object in form loses focus

  • When clicking on an object in the form

  • When clicking the command button

  • Question 10. Is JavaScript a scripting language that can hide the source code?

  • Unable to hide because of client-side scripts

  • Hide because the program works independently of the browser

  • These two statements are wrong

  • David Pac David Pac

    Update 24 May 2019

    ncG1vNJzZmismaXArq3KnmWcp51krm6%2FxK1kqJ5dn663rdKcqaKopGK6trjToqelnZOdvKqvxGaorp2jqbawutJmn5qrXaWAbq3NrK6eqqM%3D