FSR020923 Today's community thing!

1-what is variables in java script??

variables are used to store data

1 Like

In js variable is used to store some data
var x = 20;
var chr = “string”;

1 Like

Using var
Using let
Using const

1 Like

They are 3 types of variables in js
Let , const and var

1 Like

variable is container which stores some value or variable is the name of the memory location which stores contain value there are 3 types key words to declare the variable let var const

1 Like

its used to store data

1 Like

2-What are data types in JS??

variables are used to store the data for future reference or reusability

1 Like

data type is a type of data that we want to store in variable like int,float,boolean

1 Like

primitive and non primitive

1 Like

Variable is a one kind of storage to store a data in JavaScript. There are three ways to store variables, they are let, const, var.

1 Like

primitive and non primitive
these are main two data types in js

1 Like

Number
String
Boolean
Null
Object

1 Like
  • String.
  • Number.
  • Boolean.
  • Undefined.
  • Null.
  • Object.
1 Like

there are two types of datatypes 1)primitive 2)non-primitive
in primitive we have the number,string , boolean, symbol, bigint
in non primitive we have the 1)array 2)objects 3)functions

2 Likes

primitive and Non- primitive datatypes

1 Like