JavaScript-Style

JavaScript-Style

1st - 4th Grade

7 Qs

quiz-placeholder

Similar activities

me

me

1st Grade

11 Qs

Grades 1 & 2 _day1

Grades 1 & 2 _day1

1st - 2nd Grade

12 Qs

Time Quizzz

Time Quizzz

4th Grade

10 Qs

DIVISION DETECTIVES

DIVISION DETECTIVES

3rd Grade

10 Qs

ECUACIONES DE PRIMER GRADO

ECUACIONES DE PRIMER GRADO

1st Grade

11 Qs

Mod2_Session3_PlaceValue - MS. YLADIA

Mod2_Session3_PlaceValue - MS. YLADIA

3rd Grade

10 Qs

Grade 4 - Mental Maths - Week 2

Grade 4 - Mental Maths - Week 2

4th Grade

10 Qs

Función lineal 2

Función lineal 2

1st Grade

9 Qs

JavaScript-Style

JavaScript-Style

Assessment

Quiz

Mathematics

1st - 4th Grade

Practice Problem

Medium

Created by

NEREA HERNÁNDEZ

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...

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which ones are valid names for javascript files?

my_script.js

myscript.javascript

myScript.js

my-script.js

2.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Choose the correct way to declare variables

myvariable

my_variable

my-variable

myVariable

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Possible ways to declare a constant

const myconst

const myConst

const MYCONST

const my-cosnt

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Media Image

what's wrong with this code?

More than 2 spaces

Function name in UpperCamelCase

Spaces between operands and operator '+'

Parameter name

Missing comments

5.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Media Image

What's wrong with this code?

String with double quotes

More than 2 spaces

Braces are in the wrong position

Parameters names

6.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Media Image

What is wrong in the following JSDoc comment?

There is nothing wrong

The variable has to be between braces

The function does not return a number

The first line of the comment does not have a tag

7.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

What should we always do in our JavaScript code?

Add head comments

Add 'use strict'

Follow the Google style guide

Use ' @ts-check '

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?