Sulthan Mohaideen
banner
sulthannk.bsky.social
Sulthan Mohaideen
@sulthannk.bsky.social
Technoid | Mobile Application Engineer

https://bento.me/sulthannk
Modern Variable Declaration in JavaScript

Use let and const instead of var for better control:

• let → allows reassignment when needed
• const → values stay fixed once assigned

Both prevent scoping issues var had, making code more reliable.

#LearnInPublic #JavaScript
December 19, 2025 at 9:20 AM
Keep Variable Names Clean

Avoid special characters like exclamation points ! or at symbols @ in variable names. Use letters, numbers, underscores, or dollar signs only. Clean, readable names make code easier to understand & maintain as complexity grows.

#LearnInPublic #tech
December 18, 2025 at 7:56 AM
Avoid Reserved Keywords

You can't use JavaScript's reserved keywords as variable names. Words like let, const, function, return & if are part of the language syntax. Using them as variable names will cause errors. Stick to descriptive, non-reserved names.

#LearnInPublic #tech
December 17, 2025 at 7:55 AM
Using camelCase for Variables

camelCase is the standard naming convention in JavaScript. The first word is lowercase & each following word starts with an uppercase letter. This makes multi-word variable names readable & consistent across your codebase.

#LearnInPublic #tech
December 16, 2025 at 7:12 AM
Variables Are Case-Sensitive

JavaScript treats age & Age as 2 different variables because it's case sensitive. To avoid confusion, stick with a consistent naming convention like camelCase or suitable one

#LearnInPublic #tech
December 15, 2025 at 7:12 AM
JavaScript Variable Naming Rules

Variables must start with a letter, underscore (_), or dollar sign ($)—never a number. They can't use reserved keywords like let, function, or return. Following these rules prevents errors and keeps your code functional.

#LearnInPublic #tech
December 14, 2025 at 8:03 AM
Use Descriptive Variable Names

Variable names should describe the data they hold. Instead of vague names like x or y, use meaningful names like age or points. This makes your code easier to read and maintain as it grows more complex.

#LearnInPublic #tech
December 13, 2025 at 7:09 AM
Reassigning Variable Values

One key advantage of let is that you can reassign values to variables. After declaring a variable once, you can update its value without using let again. This is useful for tracking changing data, like game scores or user input.

#LearnInPublic #tech
December 12, 2025 at 9:25 AM
Assignment Operator Isn’t Equality

The = operator assigns values to variables, it doesn’t compare them. Writing let age = 25 stores 25 in age, which is called initialization, not equality. Equality checks use different operators like == or ===.

#LearnInPublic #tech
December 11, 2025 at 10:46 AM
Declaring Variables Using let

The let keyword declares variables in JavaScript. Unassigned variables return undefined. Use the assignment operator (=) to store data in your variable.

#LearnInPublic #tech
December 10, 2025 at 7:38 AM
What Are JavaScript Variables?

Variables in JavaScript are containers that store data you can access and modify. Think of them as labeled boxes holding values like numbers or text. They help you track and reuse information throughout your program.

#LearnInPublic #tech
December 9, 2025 at 7:29 AM
BigInt for Very Large Numbers

BigInt lets you work with integers larger than what Number can safely handle. You create a BigInt by adding n at the end of a number. It’s useful when you need precise calculations with very large values.

#LearnInPublic #tech
December 8, 2025 at 8:16 AM
Symbol: Unique Identifiers in JavaScript

A Symbol is a special type whose value is always unique. It's useful when you need property keys that won't clash with anything else. You'll see it more in advanced code and libraries.

#LearnInPublic #tech
December 7, 2025 at 7:16 AM
JavaScript Objects: Key-Value Pairs

Objects store related data as key-value pairs. The key is a label, and the value is the data. Each pair is called a property. Objects are perfect for grouping structured information.

#LearnInPublic #tech
December 6, 2025 at 7:02 AM
Undefined vs Null in JavaScript

undefined means a variable exists but doesn't have a value yet. null means you intentionally set it to "nothing." Both represent "no value," but undefined is accidental, null is on purpose.

#LearnInPublic #tech
December 5, 2025 at 9:27 AM
True or False? Understanding Booleans

A Boolean can only be true or false. Booleans are great for questions like "Is the user logged in?" or "Is the page loading?" They drive decisions and conditional logic in your code.

#LearningInPublic #js
December 4, 2025 at 9:56 AM
Working with Strings in JavaScript

A String is text wrapped in quotes. It can hold words, sentences, or any characters. You can use single or double quotes—both work. Strings are used for names, messages, labels, and more.

#LearnInPublic #js
December 3, 2025 at 7:38 AM
JavaScript Numbers Explained

The Number type handles both whole numbers and decimals. Integers are values like 7 or 90. Floating-point numbers include a decimal, like 3.14 or 5.2. You'll use Number for most numeric work in JavaScript.

#LearnInPublic #js
December 2, 2025 at 7:25 AM
What Are Data Types in JavaScript?

In JavaScript, a data type describes the kind of value a variable holds. A variable is just a named container for data. Types like numbers, text, and booleans help your code know how to store, compare, and work with values.

#LearnInPublic #js
December 1, 2025 at 8:11 AM