All the Tags in this Category

Cookies and Web Storage

Local Storage, Session Storage And Cookies

πŸ“… Jan 2, 2024

Cookies

  • Cookies are small strings(max size 4KB) of data that are stored directly in the browser.
  • They are a part of the HTTP protocol, defined by the RFC 6265 specification
  • Sent to server on ecah request
  • Cookies are usually set by a web-server using the response Set-Cookie HTTP-header.
  • One cookie must not exceed 4KB, 20+ cookies per site(depends on the browser)
Read More β†’

Node Js Installation

About Nodejs and Installation

πŸ“… Jan 2, 2024

Node Js

Node.js lets you run JavaScript outside the browser, primarily for building back-end services, tools, or full-stack applications.

Node Installation

Check version

node -v

npm -v

nvm -v

Option 1: Install from Official Website

  • Go to: https://nodejs.org
  • You’ll see two options:
    • LTS (Long-Term Support) – Stable, recommended for most users
    • Current – Latest features, but may be less stable.
  • Download and install the LTS version.

This installs both Node.js and npm (Node Package Manager).

Read More β†’

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 β†’