Search Header Logo

FEW-Js1

Authored by Gakwaya Nkundimana Joel

Design

University

Used 2+ times

FEW-Js1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a constant variable in JavaScript?

constant PI=3.14;

let PI=3.14;

const pi=3.14

none above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will happen if you try to reassign a value to a variable declared with const?

it will change the value

it will throw an error

it will create a new variable

nothing will happen

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the answer for this "let num; console.log(num);

null

0

undefined

error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of these variable names is NOT valid in JavaScript?

myVar

$price

1st_name

_myname

5.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

let, var, and const are used to (a)   variables in JavaScript.

6.

FILL IN THE BLANKS QUESTION

45 sec • 1 pt

Variables created with const must be (a)   during create.

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What will be the output?
const num;

num = 5;

console.log(num);

5

undefined

syntax error

num

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?