Font size
WorksheetsFinal Review - Unit 1
Total questions: 15
Worksheet time: 3hrs 30mins
Which keywords can you use to declare variables?
var
int
let
char
const
Which way of declaring a variable can not be reassigned
var
let
const
Variable names must begin with a letter, an underscore, or a dollar sign $
True
False
Variable names are case sensitive.
True
False
Reserved words cannot be used as names for variables.
True
False
What is the following data type:
1
String
Number
Boolean
Array
Object
What is the following data type:
"10"
Number
String
Boolean
Array
Object
What is the following data type:
[2, "a", 10]
Number
String
Boolean
Array
Object
What is the following data type:
"hello world"
Number
String
Boolean
Array
Object
What is the following data type:
false
Number
String
Boolean
Array
Object
What is the correct way to declare an array?
let arr = (0, 2, 3)
let arr = [0, 2, 3]
let arr = {0, 2, 3}
let arr = <0, 2, 3>
What is the correct syntax to return the John's age from the following object?
let me = {name: 'John', age: 12, favoriteFood: "pizza"}
John.age
age
me.age
12
In JavaScript, "//" is known as a what?
Comment
Askii
Double Division
and
_____ simply means the rules or guidelines for doing something in a language, in our case a programming language.
Syntax
Code
Program
Banana
Creating a variable is called "_____" a variable.
Declaring
Initializing
Setting
Typing
