JavaScript Quiz

Inside which HTML element do we put the JavaScript?
<scripting>
<js>
<script>
<javascript>
Where is the correct place to insert a JavaScript?
The <head> section
The <body> section
Both the <head> section and the <body> section are correct
The <style> section
What is the correct syntax for referring to an external script called "xxx.js"?
<script src="xxx.js">
<script name="xxx.js">
<script href="xxx.js">
<script="xxx.js">
How do you create a function in JavaScript?
function : myFunction()
function = myFunction()
function myFunction()
function : myFunction
How to write an IF statement in JavaScript?
if( i == 5 )
if i == 5
if i = 5
if i = 5 then
How to write an IF statement for executing some code if "i" is NOT equal to 5?
if i =! 5 then
if( i<> 5)
if i <> 5
if i != 5
How do you round the number 7.25, to the nearest integer?
math.rnd 7.25
round 7.25
math.round 7.25
rnd 7.25
How do you find the number with the highest value of x and y?
Math.max(x , y)
ceil(x , y)
top(x , y)
Math ceil(x , y)
0
{"name":"JavaScript Quiz", "url":"https://www.quiz-maker.com/Q4Z2XALPC","txt":"Inside which HTML element do we put the JavaScript?, Where is the correct place to insert a JavaScript?, What is the correct syntax for referring to an external script called \"xxx.js\"?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker