js Quiz

js Quiz

8th Grade

40 Qs

quiz-placeholder

Similar activities

PTLW Home Styles and Construction Basics

PTLW Home Styles and Construction Basics

6th - 8th Grade

35 Qs

Semester Final Exam

Semester Final Exam

6th - 8th Grade

40 Qs

แบบทดสอบวิชาไมโครคอนโทรลเลอร์

แบบทดสอบวิชาไมโครคอนโทรลเลอร์

KG - Professional Development

45 Qs

Video Game Knowlege Quiz

Video Game Knowlege Quiz

4th - 12th Grade

37 Qs

MATHDOIT

MATHDOIT

4th - 9th Grade

43 Qs

The Ultimate Mario Kart Quiz!

The Ultimate Mario Kart Quiz!

KG - Professional Development

35 Qs

What Starbucks drink is this

What Starbucks drink is this

KG - Professional Development

45 Qs

Chapter 9 TEST

Chapter 9 TEST

6th - 8th Grade

35 Qs

js Quiz

js Quiz

Assessment

Quiz

Other

8th Grade

Hard

Created by

Ebulfez Seferov

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

Sual: Bu kodun nəticəsinin nə olacağını bilirsinizmi?

console.log(typeof typeof 1 );

String

number

1

true

Answer explanation

This actually returns "string".

This expression is evaluated from right to left.

The first sub-expression evaluated actually is typeof 1 which will return "number".

Only after that the next sub-expression is evaluated which now is typeof "number" which returns "string".

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

let array=[1,2,3];

array[6]=9;

console.log(array[5]);

Sual: Bu kodun nəticəsinin nə olacağını bilirsin

undefined

1

2

9

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Question: Can you guess what will be the output of the code below?

console.log(typeof NaN);

Sual: Aşağıdakı kodun nəticəsinin nə olacağını təxmin edə bilərsinizmi?

NaN

number

null

undefined

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

console.log(false=='0');

Bu kodun nəticəsinin nə olacağını bilirsinizmi?

false

true

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

console.log("This is a string." instanceof String);

Bu kodun nəticəsinin nə olacağını bilirsinizmi

true

false

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

const numbers = [33, 2, 8];

numbers.sort();

console.log(numbers[1])

Bu kodun nəticəsinin nə olacağını bilirsinizmi?

33

2

8

1

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If you type the following code in the console window, what result will you get?

3 > 2 > 1 === false;

Konsol pəncərəsində aşağıdakı kodu yazsanız, hansı nəticəni əldə edəcəksiniz?

true

false

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?