Skip to content

Instantly share code, notes, and snippets.

@danazkari
Last active March 12, 2018 21:11
Show Gist options
  • Save danazkari/8041e91cf06e53645c5fb89ce2ecd640 to your computer and use it in GitHub Desktop.
Save danazkari/8041e91cf06e53645c5fb89ce2ecd640 to your computer and use it in GitHub Desktop.

JS Questions

  • What will this print out and why?
console.log(0.1 + 0.2);
console.log((0.1 + 0.2) === 0.3);
  • Describe what the 'use strict'; expresion does

  • Do you know what an object prototype is? Do you know how to declare a class in JS? Show me

  • Do you know what the difference is between let, const and varare? Can you show me with an example?

  • Do you know what an arrow function is in JS?

  • What would you use to pull out a list of id-s of each object of this array?

const array = [
  {
    id: 1,
    foo: 'bar',
  },
  {
    id: 2,
    bar: 'foo',
  }
]

This is what I based myself off of and then I start throwing some random other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment