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
Prova 1

Quiz
•
2nd Grade
10 questions
1st Grade

Quiz
•
1st Grade
10 questions
Java Básico Quiz

Quiz
•
3rd Grade
10 questions
CUBES Strategy Quiz

Quiz
•
4th - 8th Grade
12 questions
Inequality number lines

Quiz
•
4th - 10th Grade
10 questions
Subtraction mental math

Quiz
•
2nd Grade
7 questions
Adding four two and three digit numbers

Quiz
•
3rd Grade
11 questions
观察物体

Quiz
•
1st - 3rd Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Quiz
•
4th Grade
10 questions
Place Value

Quiz
•
3rd Grade
20 questions
place value

Quiz
•
4th Grade
20 questions
Place Value and Rounding

Quiz
•
4th Grade
15 questions
Place Value

Quiz
•
4th Grade
20 questions
Division Facts

Quiz
•
3rd Grade
20 questions
Equal Groups

Quiz
•
3rd Grade
20 questions
addition

Quiz
•
1st - 3rd Grade