Create a gist now

Instantly share code, notes, and snippets.

Embed
movieStar(); // Prints “TypeError : movieStar is not a function”
var movieStar = function () {  // This is a function expression and therefore not hoisted
  var name = “Philip Seymour Hoffman”;
  console.log(name); 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment