Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
1 / 5
0

Javascript Variables

DEV Community·vidhya murali·about 14 hours ago
#fkrc9Ixy
Reading 0:00
15s threshold

Hi, Let's Learn Variables in Javascript. Variable [Variables = Data Containers] A JavaScript variable is a named container used to store, reference, and manipulate data values in a program. Because JavaScript is dynamically typed, you do not need to specify the type of data (like text or numbers) when creating a variable; the engine determines it automatically at runtime. Variables are identified with unique names called identifiers. Ex : a=10 ---> a- variable , 10- value The rules for constructing names (identifiers) are: Names can contain letters, digits, underscores, and dollar signs. Names must begin with a letter, a $ sign or an underscore (_).Numbers are not allowed as the first character in names. Names are case sensitive (X is different from x). Reserved words (JavaScript keywords) cannot be used as names. Dynamically Typed vs Statically Typed Languages Statically Typed Languages How it works: Variable data types are known and enforced before the program runs (at compile time).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More