Computer Science, asked by sujithsuresh2476, 1 year ago

how will you declare variables sub1, sub2 and sub3 in javascript ?

Answers

Answered by Anonymous
23

Hi,

We can declare a variable in javascript using var keyword

so we can declare sub1, sub2 and sub3 variable like below

var sub1;

var sub2;

var sub3;

however we also write this like below

var sub1, sub2, sub3;



ayan1766: tq fr hrlping me
ayan1766: ya i chaked its correct thnzz once again
Answered by StaceeLichtenstein
1

var sub1;

var sub2;

var sub3;

are the correct answer to the given question

Explanation:

  • In the JavaScript language we used the var keyword to declared the any variable .The JavaScript variables are the reservoirs where the data properties are stored.
  • Following are the syntax to declare any variable .

       var variable-name ;

So according to the question we used following syntax

var sub1,var sub2,var sub3

Learn More :

  • brainly.in/question/5470828

Similar questions