
JWD JS Test Bank 11-20
Authored by Lazaro Alsina
Computers
Professional Development
Used 33+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
11. With JavaScript, which method is used to search for a substring?
stringVariable.substring(subString)
stringVariable.find(subString)
stringVariable.indexOf(subString)
stringVariable.indexOf(charAt(0))
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
12. With JavaScript, what does = do?
Compares two values
Exchanges two values
Makes the right value equal to the left
Makes the left value equal to the right
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
13. With JavaScript, which of these is not a valid parameter?
text
number
variable
operator
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
14. With JavaScript, how do you create a function?
function=myFunction()
function myFunction()
function:myFunction()
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
15. A JavaScript statement should end with what?
comma
semicolon
colon
bracket
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
16. With JavaScript, how would you change the date to one week later?
myDate.setDate(+7)
myDate.setDate(myDate.getDate()+7)
myDate.chgDate(myDate.getDate()+7)
myDate.chgDate(+7)
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
17. Which best describes JavaScript?
a server-side scripting language
a scripting language precompiled in the browser
an object-oriented scripting language
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?