
Exploring Basic JavaScript Syntax

Quiz
•
Computers
•
5th Grade
•
Medium
YASSINE AMMANI
Used 2+ times
FREE Resource
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)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
HT2 - L4: Fix it lesson

Quiz
•
5th Grade
10 questions
Programming - Arrays

Quiz
•
2nd - 12th Grade
13 questions
Coding- The New Literacy

Quiz
•
KG - 5th Grade
12 questions
JavaScript and Web Development Quiz

Quiz
•
1st - 5th Grade
10 questions
Desarrollo web

Quiz
•
1st - 5th Grade
10 questions
Programming Knowledge Quiz (Medium)

Quiz
•
5th Grade - Professio...
11 questions
JavaScript Quiz

Quiz
•
5th Grade
13 questions
Code Combat JavaScript Quiz

Quiz
•
4th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade