1
2
3
4
5
6
7
8
9
10
To practice on your own, or to check code you believe shouldn't have been scored as incorrect, go to CodePen.
0,1,2,3,4,5,6,7,8,9
0
0
0
0
Two characters in this code are incorrect. Type the two correct characters. | let allLower = userInput.tolowercase(); | LC - it must be in camelCase: toLowerCase() | LC |
What is the value of upperVersion? Include the quotation marks in your answer. | let upperVersion = "no!".toUpperCase(); | "NO!" | •?NO•?! |
Convert the string in the variable upperString to lowercase and assign the result to lowerString, which hasn't been declared beforehand. | let lowerString = upperString.toLowerCase(); | letlowerString=upperString\.toLowerCase\(\); | |
Convert the string in the variable x to lowercase and assign the result to the same variable. | x = x.toLowerCase(); | x=x\.toLowerCase\(\); | |
Convert the string in a variable to uppercase and assign the result to a second variable that hasn't been declared beforehand. Make up the variable names. | let nameUpper = name.toUpperCase(); | let[a-z_$][a-zA-Z0-9_$]*=[a-z_$][a-zA-Z0-9_$]*\.toUpperCase\(\); | |
Convert a string to lowercase and assign the result to a variable that has been declared beforehand. Make up the variable name and the string. | convertedString = "Dog".toLowerCase(); | [a-z_$][a-zA-Z0-9_$]*=•.*•\.toLowerCase\(\); | |
Display in an alert the uppercase version of a string that has been assigned a variable. Make up the variable name. | alert(message.toUpperCase()); | alert\([a-z_$][a-zA-Z0-9_$]*\.toUpperCase\(\)\); | |
Convert the string in an array element to lowercase and assign it to a variable that hasn't been declared beforehand. Make up everything. | let lowerVersion = pets[1].toLowerCase(); | let[a-z_$][a-zA-Z0-9_$]*=[a-z_$][a-zA-Z0-9_$]*\[(0|-?[1-9][\d]*)\]\.toLowerCase\(\); | |
|
|||
|