wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JavaScript Fundamentals

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the value of “a” in the following statement?

var a;

a)

undefined

b)

null

c)

0

d)

NaN

2.

What is the value of:

”41” + 1

a)

42

b)

“42”

c)

411

d)

“411”

3.

What is the value of:

”31” - 1

a)

“30”

b)

30

c)

“311”

d)

NaN

4.

What is the extension for a JavaScript file?

a)

.java

b)

.jar

c)

.js

d)

.sj

5.

JavaScript functions can access variables defined in the same scope?

a)

True

b)

False

6.

Variables defined inside of functions are accessible outside of the function?

a)

True

b)

False

7.

What is the name of the JavaScript standard?

a)

JavaScript

b)

ECMA Script

c)

JS

d)

PEP

8.

In JavaScript strings must be defined using only double quotes (“).

a)

True

b)

False

9.

Which list contains the correct data types in JavaScript?

a)

numbers, strings, booleans, symbols, objects, null, and undefined

b)

numbers, strings, booleans, symbols, objects, Nan, and undefined

c)

numbers, strings, booleans, symbols, objects, null, and undefined

d)

numbers, strings, booleans, symbols, objects, null

10.

Which of the following statements are correct?

a)

The `let` keyword will throw an error if you try to declare the same variable a second time.

b)

The `const` keyword, will not allow you to redeclare and reassign the variable

c)

The `var` keyword declares variables that are processed before any code is executed

d)

None of the above