wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to JavaScript

Total questions: 7

Worksheet time: 5mins

Name
Class
Date
1.

What code do we use to log something to the console?

(a)  

2.

Which is a multi-line comment?

a)

/* (text)

b)

/* (text) */

c)

// (text)

d)

// (text) //

3.

How do you log a string to the console?

4 lines
4.

What is modulo?

a)

A function for capitalizing a string

b)

A cool word coders say when they model something

c)

A type of code similar to JavaScript

d)

An operator that calculates the remainder of any two numbers

5.

How can you combine strings using an operator?

4 lines
6.

What does the ".length" property do?

4 lines
7.

What code can calculate a random number between 0 and 1?

(a)