Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Codecademy Intro to JavaScript

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

Variable names cannot start with numbers.

a)

True

b)

False

2.

_____ is a JavaScript keyword that creates, or declares, a new variable.

a)

script

b)

var

c)

bar

d)

console

3.

(what symbol) is the assignment operator. It assigns the value to the variable

a)

+

b)

: )

c)

;

d)

=

4.

the "let" keyword signals that the variable cannot be changed

a)

True

b)

False

5.

What will you get if you try to declare a "const" variable without a value?

a)

TypeError

b)

SyntaxError

c)

SpellingError

6.

Which mathematical assignment is the "increment operator"?

a)

+=

b)

++

c)

--

d)

+-

7.

What does "Concatenation" mean?

a)

to add

b)

to subtract

c)

to join together

d)

to swindle a cat out of money

8.
Generally speaking, what functionality does JavaScript provide when used as part of the "Web development trifecta"?
a)
Page manipulation capabilities and advanced interactivity
b)
Content and page structure, but minimum interactivity
c)
Formatting and page design, plus some simple interactivity
d)
Content, page structure, and advanced interactivity
9.
An object-oriented program is:
a)
a collection of individual objects that perform different functions.
b)
a collection of methods that trigger a specific function.
c)
a collection of events that trigger a specific function.
d)
a sequence of statements that define the user agents in which the program will function.
10.

Which of the following is the correct Javascript format for a comment?

a)

// "the text"

b)

/"the text"/

c)

*/"the text"/*

d)

\\"the text

11.
Indicates the beginning  and the end of a JavaScript section.
a)
<html> </html>
b)
<style> </style>
c)
<article> </article>
d)
<script> </script>
12.
In JavaScript, you should include a semi-colon at the end of each statement.
a)
yes
b)
no
13.
What character do we use for multiplication?
a)
#
b)
x
c)
*
d)
/
14.
What character do we use for division?
a)
#
b)
x
c)
*
d)
/
15.
A JavaScript file has an extension name of
a)
.jscp
b)
.js
c)
.css
d)
.Jp
16.

Bonus Question: What is the web programming Trifecta?

a)

HTML, CSS, Javascript

b)

Java, C+, HTML

c)

Java, HTML, CSS

d)

Kobe, Labron, Jordan