7: How to Create Variables in JavaScript | JavaScript Tutorial | Learn JavaScript | mmtuts

↔️ ↕️

Sharing buttons:

how is it going everyone

and welcome back to our next episode

in how to create variables using java script

variable is something that we use often inside java script

we actually use it all the time

and in this example here we are gonna show example how variables work

so you can see how use it inside java script

as you see from here

we have index page open in the right side

and in the left side i have a browser open in the command console

or the developer tool open in the bottom here

now what i'm going to do is going ahead and right

some java script code i'm gonna say i want to

console dot log

which is going to send some kind of information

to the command console inside the browser right no

what to say ten

plus twenty

you guys can see we get thirty inside console

that takes exact same thing if we go inside the console

and write ten plus twenty