
Exploring Basic JavaScript Syntax
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Medium
YASSINE AMMANI
Used 2+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to print to the console in JavaScript?
console.log()
log.console()
System.out.println()
print.console()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable that cannot be changed in JavaScript?
let
const
Var
impossible
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the prompt() function?
To ask the user for input.
To display a message to the user.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an array (list) in JavaScript?
let myArray = new Array(1, 2, 3);
let myArray = [1, 2, 3 ];
let myArray = {1, 2, 3};
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output: console.log(1 + 2)?
2
3
4
5
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What keyword is used to declare a variable that can be changed?
static
var
const
let
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to an integer in JavaScript?
impossible
toString(string)
Int(string)
parseInt(string)
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?
Similar Resources on Wayground
10 questions
Programowanie
Quiz
•
1st - 5th Grade
10 questions
Scratch
Quiz
•
5th - 6th Grade
10 questions
HTML Introduction
Quiz
•
3rd Grade - Professio...
14 questions
CodeMonkey 0-35 Review
Quiz
•
5th - 8th Grade
10 questions
Programming: Make a game
Quiz
•
4th - 5th Grade
14 questions
แบบทดสอบหน่วยการเรียนรู้ที่ 2
Quiz
•
1st - 5th Grade
15 questions
Gr5: Assessment: Algorithm To Coding
Quiz
•
5th Grade
15 questions
Computer Coding Quiz
Quiz
•
2nd - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
