pencil-icon
Build your own quiz

Computers

Image

KA Intro to JS Variables

545
plays

5 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt
    Which of these lines of code is valid JavaScript for defining a variable?
    var noseSize = 10;
    noseSize is 10
    var noseSize == 10;
    var nose Size = 10;
  • 2. Multiple Choice
    30 seconds
    1 pt
    Which of these is a valid variable name in JavaScript?
    123abc
    abc123
    abc   123
    abc123!
  • 3. Multiple Choice
    30 seconds
    1 pt
    Which of these lines show the correct way to reassign a variable to a new value?
    myFace = 10;
    10 -> myFace;
    var myFace = 10;
    10 = myFace;
  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?