NEW
Font size
Worksheets7/2/2024
Total questions: 10
Worksheet time: 3mins
What is the result of the following expression: `3 + 2 + '7'`?
57
12
327
nan
what will the following code output?
console.log(2 + '2' - 1);
12
21
nan
3
forEach is a javascript array method that returns an array
TRUE
FALSE
Inside which HTML element do we put the JavaScript?
<js>
<javascript>
<scripting>
<script>
what would be the result of the following code
console.log(0.1 + 0.2 === 0.3)
true
false
undefined
nan
How do you handle the response from a Fetch request?
Using the .response() method
Using the .then() method
Using the .catch() method
Using the .resolve() method
The external JavaScript file must contain the <script> tag.
TRUE
FALSE
How do you write "Hello World" in an alert box?
alert("Hello World");
alertBox("Hello World");
msg("Hello World");
msgBox("Hello World");
How can you add a comment in a JavaScript?
//This is a comment
<!--This is a comment-->
'This is a comment''
How to insert a comment that has more than one line?
/*This comment has
more than one line*/
<!--This comment has
more than one line-->
//This comment has
more than one line//
using the .finally() method
