Author name: SINGI BHANU SRI

Difference between var, let and const in JavaScript

Introduction to JavaScript Variables JavaScript offers 3 distinct ways to declare variables: var let const Description var is the oldest way to declare variables in JavaScript, originating from its earliest versions let provides block-level scope, offering more predictable behavior and reducing the risk of errors associated with var. const is used to declare variables meant …

Difference between var, let and const in JavaScript Read More »

Methods of primitives in JavaScript

Introduction to Methods of Primitives in JavaScript In JavaScript, primitive values (number, string, boolean, null, undefined, and symbol) are the fundamental building blocks of data. Despite being basic and immutable, JavaScript provides a way to call methods on primitive values, giving them capabilities that seem more characteristic of objects. This fascinating feature is made possible …

Methods of primitives in JavaScript Read More »

Primitive values vs Reference values in JavaScript

In JavaScript, values are categorized into two types: primitive values and reference values. Understanding the difference between these two types is crucial for effectively managing and avoiding common pitfalls in JavaScript programming Primitive Values Primitive values are the most basic data types in JavaScript. They are immutable(values cannot be changed once created). JavaScript has 6 …

Primitive values vs Reference values in JavaScript Read More »

Scroll to Top