0

Can we give two values for the same variable?

Eg:var x=10 ,22,11

28th Apr 2020, 11:08 PM
Rahul Deshmukh
Rahul Deshmukh - avatar
1 Antwort
+ 1
In JavaScript you cannot assign multiple values to a single variable You can either declare an array to store more values var x= [10, 22, 11]
29th Apr 2020, 9:29 PM
Prabhat Kumar Singh
Prabhat Kumar Singh - avatar