JavaScript Quizz Batch 2

JavaScript Quizz Batch 2

Professional Development

20 Qs

quiz-placeholder

Similar activities

HyQuizz_Mùa 3_Day 2

HyQuizz_Mùa 3_Day 2

Professional Development

20 Qs

Standard-Tools

Standard-Tools

Professional Development

23 Qs

Se liga! 2DS  - 3ºTri

Se liga! 2DS - 3ºTri

Professional Development

16 Qs

Web Programming Essentials

Web Programming Essentials

Professional Development

15 Qs

Manipulação de Arrays em JavaScript

Manipulação de Arrays em JavaScript

Professional Development

15 Qs

Introdução à Programação Orientada a Objetos

Introdução à Programação Orientada a Objetos

Professional Development

15 Qs

BDA2-2

BDA2-2

Professional Development

20 Qs

HyQuizz_Mùa 3_Day 1

HyQuizz_Mùa 3_Day 1

Professional Development

15 Qs

JavaScript Quizz Batch 2

JavaScript Quizz Batch 2

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

Medium

Created by

Web-Dev Celerates

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the correct syntax to output "Hello My Name is Amy" in JavaScript?

println("Hello My Name is Amy")

echo("Hello My Name is Amy");

console.log("Hello My Name is Amy")

printf("Hello My Name is Amy")

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What does the typeof operator return for?

Array

Object

String

Boolean

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of these is a correct way to declare a constant in JavaScript?

const PI = 3.14

let PI = 3.14

var PI = 3.14

const PI = 3,14

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What will the following code output?

true

false

undefined

NaN

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

Which one is the correct code to make the string ALL CAPS?

message = message.toLowerCase()

message = message.toUppercase()

message = message.toupperCase()

message = message.toUpperCase()

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which is the following is a correct arrow function syntax?

function hello ( ) => {

console.log(`Hello`)

}

const hello = ( ) => {

console.log(`Hello`)

}

hello ( ) => {

console.log(`Hello`)

}

hello => console.log('Hello')

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How do you create an array in JavaScript?

let arr = "1, 2, 3"

let arr = "[1, 2, 3]"

const arr = "[1, 2, 3]"

const arr = [1, 2, 3]

Create a free account and access millions of resources

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?