Basic of JavaScript

When a Program is running state(inside the Ram) is called process
let say when my RAM is 4gb one process is takes 512 mb memory and another process it takes another memory

keyword
In a programming language few word are the reserved by the language f…


This content originally appeared on DEV Community and was authored by Sachin

When a Program is running state(inside the Ram) is called process
let say when my RAM is 4gb one process is takes 512 mb memory and another process it takes another memory

keyword
In a programming language few word are the reserved by the language for own purpose we can not changed its meaning and repurpose them for a different usecase
for examole let ,const, if ,else etc

How we can store a value inside the variable
To store a value we used Variable
let example
let take a ram inside the ram your program have 512 mb takes called process inside the process if a bucket have 12 refering the some x then x is called variable

How to create a variable in js

Three way to create a variable in js

var =value
var marks=90;

2 let keyword
syntax:let=value
let marks=60;

3 const keyword
syntax:const=value
cosnt sdhj="djdjd"

Naming Rules for Variable creation
1 variable contain small alphabet ,captital alphabet, digit,underscroe(_) like
2 we can not space or any other special character
3 we should give meaningful names so reader can identified the name properly
4 variable name can not the start with a digit but it can have digit in between at last
5 we can not used keyword in variable

Function

it take some input they process the input and recieved as output

DataType in js

what all value are store in js
Number - 10,3,2.6,-2.6
String - are the text and save "ss" as doublequotes , 'djjd' as singlequotes ,hhhd as backtick
Boolean are o,1 means true and false

undefine Something not define yet it define the futer


This content originally appeared on DEV Community and was authored by Sachin


Print Share Comment Cite Upload Translate Updates
APA

Sachin | Sciencx (2025-01-24T05:01:25+00:00) Basic of JavaScript. Retrieved from https://www.scien.cx/2025/01/24/basic-of-javascript/

MLA
" » Basic of JavaScript." Sachin | Sciencx - Friday January 24, 2025, https://www.scien.cx/2025/01/24/basic-of-javascript/
HARVARD
Sachin | Sciencx Friday January 24, 2025 » Basic of JavaScript., viewed ,<https://www.scien.cx/2025/01/24/basic-of-javascript/>
VANCOUVER
Sachin | Sciencx - » Basic of JavaScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/24/basic-of-javascript/
CHICAGO
" » Basic of JavaScript." Sachin | Sciencx - Accessed . https://www.scien.cx/2025/01/24/basic-of-javascript/
IEEE
" » Basic of JavaScript." Sachin | Sciencx [Online]. Available: https://www.scien.cx/2025/01/24/basic-of-javascript/. [Accessed: ]
rf:citation
» Basic of JavaScript | Sachin | Sciencx | https://www.scien.cx/2025/01/24/basic-of-javascript/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.