JavaScript-Style

Quiz
•
Mathematics
•
1st - 4th Grade
•
Medium
NEREA HERNÁNDEZ
Used 3+ times
FREE Resource
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
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
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
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 '
Similar Resources on Wayground
10 questions
Fixed and Variable Expenses

Quiz
•
4th Grade
10 questions
ESTADISTICA CONCEPTOS

Quiz
•
1st Grade
9 questions
dfgdxf

Quiz
•
1st Grade
10 questions
Financial Literacy

Quiz
•
4th Grade
11 questions
2nd Grade Geometry

Quiz
•
3rd Grade
10 questions
js Bucles, variables y condicionales

Quiz
•
1st - 3rd Grade
10 questions
Avaliação 3º Programação

Quiz
•
3rd Grade
10 questions
Intro to Python

Quiz
•
KG - University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Mathematics
15 questions
Place Value

Quiz
•
4th Grade
20 questions
Place Value

Quiz
•
4th Grade
13 questions
4.NBT.A.2 Pre-Assessment

Quiz
•
4th Grade
6 questions
Spiral Review 8/5

Quiz
•
4th Grade
20 questions
place value

Quiz
•
4th Grade
10 questions
Place Value

Quiz
•
3rd Grade
20 questions
Basic multiplication facts

Quiz
•
4th Grade
8 questions
Unit 1 Mystery Number Place Value Grade

Quiz
•
4th Grade