Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 2.11 KB

File metadata and controls

42 lines (40 loc) · 2.11 KB

JavaScript

Variables and Constants

  • a variable is data container or data storage
  • What is a variable?
  • Why use a variable to store data when you can hard code it?
  • What is a const?
  • Why is using a constant important? What's the important of storing data in a variable?
  • Why would you want to use a const over a variable? What's the performance of doing that? How can this help other developers understand/read your code better?
  • What are the naming conventions for javascript?
  • What is camelCase?
  • Why does naming matter? How can this help with the readability of your code?
  • Does casing matter when naming variables in JS? Is `let userName = 'myUserName';
  • What are some naming bad practices? (Snake Case)
  • What isn't allowed when naming? (vars that start with digits, can you use $ and _, Can you use other special characters?)
  • Can you use keywords to define a variable?
  • Are semi colons required? What conditions are there where you have to use semi colons?
  • What are the mathematical operators in JavaScript? (+ , -, *, /, %, **)
  • What are some other operators?
  • What are some data types? (Numbers, String, Object, Array)
  • What is a String?
  • What is an Object?
  • What is an Array?
  • In what order is code executed in a javascript file?
  • In what order is code parsed in a javascript file?
  • In what order is code compiled in a javascript file?
  • How do you declare a new string?
  • Can you mix quotes? (i.e start a string with double quotes and finish it with single quotes)
  • Can you print all characters in a string? (How do you escape unprintable characters)?
  • How do you print a variable or expression without using a + (i.e. without concat, template literal, string interpolation)
  • How do you write line breaks in a string with both concat and string interpolation?
  • White-space: pre; css property
  • What is a function?
  • Create a function?
  • What are parameters in a function?
  • What is a return value in a function?
  • What are arguments?
  • Where can you use them?
  • Are arguments an array?
  • Can you use for each or map on them?
  • How could you turn arguments into an array so that you can use map and for each on it?