
Javascript basics 6
Authored by Inna .
Professional Development
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the result of the following code? console.log(3 + '5');
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How can you check if a variable x is of type "string"?
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the purpose of the === operator in JS?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is not a valid way to declare a variable in JS?
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will the following code snippet print to the console?const numbers = [1, 2, 3, 4, 5]; numbers.forEach(function(num) { console.log(num * 2); });
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the following code snippet? let a = 10; if (a > 5) { console.log('Hello'); } else { console.log('World'); }
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How do you write an if statement that checks if a number x is positive?
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?