Basic JavaScript

Basic JavaScript

Professional Development

15 Qs

quiz-placeholder

Similar activities

Typescript Basics

Typescript Basics

Professional Development

20 Qs

JSON YAML

JSON YAML

Professional Development

11 Qs

IT

IT

6th Grade - Professional Development

11 Qs

Révision HTML, CSS et JavaScript

Révision HTML, CSS et JavaScript

Professional Development

20 Qs

Preguntas Random (>‿◠)✌ Parte 2

Preguntas Random (>‿◠)✌ Parte 2

Professional Development

19 Qs

V1 - 12/10

V1 - 12/10

Professional Development

10 Qs

Autocad - Quiz 01

Autocad - Quiz 01

Professional Development

15 Qs

Arrays & Strings using C

Arrays & Strings using C

Professional Development

15 Qs

Basic JavaScript

Basic JavaScript

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Daniel Adesoji

Used 14+ 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?