Quiz
Intro to JavaScript + Data Types and Variables I
Perguntas do 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]
Informações
- Descrição
- Quiz sobre Intro to JavaScript + Data Types and Variables I, criado por Code Ramp em 10-04-2018.
- Autor
- Code Ramp
- Idioma
- English
- Visualizações
- 38
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz