Computers

Image

KA JS Text and Strings

153

5 questions

  • 1. Multiple Choice
    30 seconds
    1 pt
    Which of these lines of JS code properly store a string?
    var myName = 'Fox";
    var myName = Fox;
    var myName = 'Fox';
    var myName = "Fox';
  • 2. Multiple Choice
    30 seconds
    1 pt
    What operator do you use to combine strings together?
    ++
    &
    &&
    +
  • 3. Multiple Choice
    30 seconds
    1 pt
    Which of these lines of code display a string and have no errors?
    text(Heya, 10, 20);
    text("Heya", 10, 20);
    text("Heya, 10, 20");
    text("Heya, 10, 20);
  • Answer choices
    Tags
    Answer choices
    Tags