JavaScript-Style
Quiz
•
Mathematics
•
1st - 4th Grade
•
Practice Problem
•
Medium
NEREA HERNÁNDEZ
Used 3+ times
FREE Resource
Enhance your content in a minute
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 '
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Spellings and Mental Maths
Quiz
•
1st Grade
10 questions
1st class Quiz
Quiz
•
1st Grade
10 questions
Algebraic Formulae
Quiz
•
1st - 3rd Grade
11 questions
2nd Grade Geometry
Quiz
•
3rd Grade
10 questions
Mixed Bag
Quiz
•
3rd - 4th Grade
6 questions
Fornite Dances by Kevin and Spencer
Quiz
•
KG - Professional Dev...
10 questions
QUADRILATERALS
Quiz
•
4th Grade
12 questions
funciones Lineales
Quiz
•
1st Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Mathematics
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
10 questions
Area
Quiz
•
3rd Grade
20 questions
Identifying Fractions
Quiz
•
3rd Grade
77 questions
Mixed Multiplication and Division Facts
Quiz
•
4th Grade
100 questions
100 multiplication facts
Quiz
•
3rd Grade
