01-JS Fundamentals | Javascript introduction

JS introduction and Variable declaration and scope

πŸ“… Jan 6, 2024

Introduction to JS

What is JavaScript?

  • JavaScript is a dynamic, weakly typed programming language which is compiled at runtime.
  • It can be executed as part of a webpage in a browser or directly on any machine (β€œhost environment”).
  • JavaScript was created to make webpages more dynamic (e.g. change content on a page directly from inside the browser).
Read More β†’

05-JS Fundamentals | Function in Javascript

Different types of function in Javascript

πŸ“… Jan 10, 2024

Function in Javascript

Different Way of Defining Function

  • Function Declaration / Function Statement
    • Hoisted to top, can be declared anywhere in the file (i.e. also after it’s used)
  • Function Expression
    • Hoisted to top but not initialized/defined, can’t be declared anywhere in the file (i.e. not after it’s used)
  • Arrow function
  • IIFEs
Read More β†’