
JavaScript Fun
Authored by Ahmad Wahidy
Science, Computers
3rd Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Where can we use the < script > tag ?
In the < head > tag
In the < body > tag
Both < head > and < body > tags
none of these
2.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Variable x has a value of 5. Variable y has a value of 7
how does x < 7 && y > 6 evaluate ?
True
false
typeError
undefined
3.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
JavaScript is case sensitive ?
True
False
case is convention
all are true
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
let name = 'John', age = 20
console.log(`Hi, my name is ${name.toUpperCase()} and I'm ${++age} years old`)
Hi, my name is John and I'm 20 years old
SyntaxError
Hi, my name is JOHN and I'm 20 years old
Hi, my name is JOHN and I'm 21 years old
5.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
which of these is not a logical operator ?
!
&
&&
||
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
let a = false;
console.log (x = a ? "A" : "B")
"B"
"A"
A
B
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
If the value of x is 40, then what is the output of the following program?
(x % 10 == 0) ? console.log(“Divisible by 10”) : console.log(“Not divisible by 10”);
ReferenceError
Not divisible by 10
None of the above
Divisible by 10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?