Quiz
Intro to JavaScript + Data Types and Variables I
Fragen in diesem Quiz (5)
1Which of the following are examples of computer programs?
- AYour browser
- BA video game
- CMicrosoft excel
- DYour operating system
2Which command serves as a good debugging tool by printing something to the JavaScript console?
- Aprompt()
- Bconsole.log()
- Calert()
3Which of the following is not a JavaScript primitive data type?
- AString
- BBoolean
- CDecimal
- DNull
4Which of the below demonstrates good variable naming conventions?
- Avar #1bestnameever = "Bob";
- Bvar firstName = "Bob";
- Cvar n = "Bob";
- Dvar first name = "Bob";
5If we've created a variable which contains a string value (e.g. var courseName = "Code Ramp"), how can we find the first character of that string (e.g. "C")?
(Hint: We're using indexing here!)- AcourseName[1]
- BcourseName[0]
- CcourseName[5]
- DcourseName[-1]
Informationen
- Beschreibung
- Quiz am Intro to JavaScript + Data Types and Variables I, erstellt von Code Ramp am 10/04/2018.
- Autor
- Code Ramp
- Sprache
- English
- Aufrufe
- 38
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz