Exploring Basic JavaScript Syntax

Exploring Basic JavaScript Syntax

5th Grade

11 Qs

quiz-placeholder

Similar activities

Quiz

Quiz

4th - 6th Grade

10 Qs

computer language

computer language

5th - 10th Grade

15 Qs

Pemrograman Android KD 3.28/4.28

Pemrograman Android KD 3.28/4.28

1st Grade - Professional Development

10 Qs

scratch 4

scratch 4

4th Grade - University

13 Qs

Programación 1

Programación 1

5th Grade

10 Qs

ORGANIZING YOUR WORK

ORGANIZING YOUR WORK

5th Grade

15 Qs

Scratch (28th March)

Scratch (28th March)

KG - University

10 Qs

Computer Software

Computer Software

KG - Professional Development

15 Qs

Exploring Basic JavaScript Syntax

Exploring Basic JavaScript Syntax

Assessment

Quiz

Computers

5th Grade

Practice Problem

Medium

Created by

YASSINE AMMANI

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to print to the console in JavaScript?

console.log()

log.console()

System.out.println()

print.console()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable that cannot be changed in JavaScript?

let

const

Var

impossible

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the prompt() function?

To ask the user for input.

To display a message to the user.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an array (list) in JavaScript?

let myArray = new Array(1, 2, 3);

let myArray = [1, 2, 3 ];

let myArray = {1, 2, 3};

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output: console.log(1 + 2)?

2

3

4

5

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What keyword is used to declare a variable that can be changed?

static

var

const

let

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string to an integer in JavaScript?

impossible

toString(string)

Int(string)

parseInt(string)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?