Font size
WorksheetsJavascript basics
Total questions: 15
Worksheet time: 17mins
What type of variable is expressed as true/false?
String
Boolean
Number
Conditional
A variable can be declared with keyword (a)
What operator can be used with both strings and numbers?
"-"
"/"
"+"
"*"
What is the result of 12 % 5 ?
2
17
60
7
Which of these is NOT a valid string?
Hello
"work4$"
"Hello, world!"
"dude'
What is the difference between loose equality (==) and strict equality (===)?
What will be logged to the console here? --
var concatted = 5 + 7 + "hello" + 5 + 12
57hello512
12hello17
12hello512
57hello17
What will this boolean expression resolve to? --
"23" < "123"
true
false
Which of these characters CAN be included in a number?
7
.
,
-
How can the modulo operator be useful?
Which of these characters can be included in a string?
Alphabetical (a-z, A-Z)
Digits (0-9)
Spaces
Special Characters (!/$^*, etc.)
all of the above
Quotations:
" " or ' '
Curly Brackets:
{ }
Parentheses:
( )
Square Brackets:
[ ]
In this code snippet:
```
var thing;
console.log(thing);
```
What is the value of "thing"?
null
"thing"
undefined
""
What will this return?
`typeof 34.5`
(a)
What is one difference between Javascript and Java?
