Game Preview

Web 103 Mid-Semester Review

  •  English    22     Public
    A review of concepts covered in the first half of the Web 103 Hy-Tech Club Course
  •   Study   Slideshow
  • Which keyword is used to create variables?
    let
  •  5
  • When this code runs, what message will appear?
    "I am 7 years old!"
  •  5
  • Which function will grab a full HTML element in JavaScript?
    document.querySelector
  •  10
  • Which function will create a new HTML element in JavaScript?
    document.createElement
  •  10
  • What is the first keyword needed to create a for loop?
    for
  •  5
  • The part of a function within curly brackets is called...
    the body
  •  10
  • How many statements go between the parentheses in a for loop?
    3
  •  5
  • True or False: In JavaScript, functions can be stored in variables
    True
  •  5
  • True or False: when defining a function, a name is always required
    False
  •  5
  • Which two symbols create an "arrow" for function definitions in JavaScript?
    => (equals sign, greater-than sign)
  •  5
  • Convert this function into an arrow function
    () => 5
  •  10
  • Convert this function into an arrow function
    x => x+1
  •  10
  • What will be alerted when this code runs?
    5
  •  15
  • What will be alerted when this code runs?
    110
  •  15
  • What will be alerted when this code runs?
    Timmy is an average kid
  •  10
  • What will be alerted when this code runs?
    7
  •  15