Posts

Showing posts from November, 2024

Java script

JavaScript Here's a quick overview of essential JavaScript notes to get you started: 1. Basics JavaScript: A versatile, lightweight, interpreted programming language used mainly for adding interactivity to web pages. Client-side vs Server-side: JavaScript is commonly used on the client side but can be run server-side using Node.js.   2. Data Types Primitive Types: `string`, `number`, `boolean`, `null`, `undefined`, `bigint`, `symbol`. Non-Primitive Types: `object` (includes arrays, functions, etc.).   3. Variables Declaration Keywords:   - `var`: Function-scoped (old way, can have unexpected behavior).   - `let`: Block-scoped, suitable for reassignable variables.   - `const`: Block-scoped, used for constants and cannot be reassigned.   let name = 'John'; const PI = 3.14; var age = 30;   4. Functions Function Declaration: function greet() {   console.log("Hello!"); }   Function Expression: ...