A callback is a JavaScript function that is passed to another function as an argument or a parameter.

Cookie is generally a small data that is sent from a web

Closures in JavaScript is a feature where an inner function has access to the outer Function’s variables

Remove duplicates from Array: 2 ways

  1. Use filter
  2. Use for loops

Undefined Undefined: A variable has been declared but a value has not yet been assigned to that variable Null: An assignment value to any variable that is meant to contain no value Undeclared: Variables that are not declared or that do not exist in a program

Types of Compilation

Ahead-of-time (AOT) Compilation converts your code during the build time before the browser downloads and runs that code. Ensures faster rendering to the browser

Just-In-Time (JIT) compilation process is a way of compiling computer code to machine code during execution or run time.

Data Binding

String Interpolation (in Angular)

String Interpolation is a one-way data-binding technique that outputs the data from TypeScript code to HTML view It is denoted using double curly braces It helps display the data from the component to the view


Ash recommends me that if I actually want to deploy to a real server, it’s probably easier to just use JavaScript because of all the dependency issues.

  • This isn’t an issue when you use frameworks, but when you write typescript from scratch, it’s a pain