Basic JavaScript

Basic JavaScript

Professional Development

15 Qs

quiz-placeholder

Similar activities

Quiz for Module3

Quiz for Module3

Professional Development

20 Qs

Programming Knowledge Quiz (Medium)

Programming Knowledge Quiz (Medium)

5th Grade - Professional Development

10 Qs

Nodejs: Database Migration and Seeders with (ORM/ODM)

Nodejs: Database Migration and Seeders with (ORM/ODM)

Professional Development

20 Qs

Talent Next Quiz-5

Talent Next Quiz-5

Professional Development

10 Qs

Java Collections

Java Collections

Professional Development

14 Qs

Web Development Workshop

Web Development Workshop

University - Professional Development

10 Qs

Quiz-4

Quiz-4

Professional Development

10 Qs

Nodejs: Packages and Package.json

Nodejs: Packages and Package.json

Professional Development

15 Qs

Basic JavaScript

Basic JavaScript

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Daniel Adesoji

Used 11+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

variable = 10;

const variable = 10;

variable := 10;

variable == 10;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression: 5 + "5";

10

"55"

Nan

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display a message in the browser's console

console.print()

log()

print()

console.log()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a function in JavaScript?

function = myFunction() {}

function myFunction() {}

let myFunction() {}

function myFunction: {}

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

10

5

undefined

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create an array in JavaScript?

array = [1, 2, 3];

array(1, 2, 3);

array = {1, 2, 3};

array = (1, 2, 3)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression true && false

true

false

undefined

Error

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?