I am starting a new mini series on JavaScript. I’m starting it from zero. Anyone can start learning from here. My goal is helping others while learning! I know about JavaScript and I’m working on a MERN tech stack. But I think it is not a bad idea to revise the JavaScript from scratch and helping others in this time. If you have any questions, shoot on the comment session or you can directly ask me in my social media. Social media links are in the last part of today’s lesson! Let’s learn JavaScript together.

JavaScript Variables — JavaScript Series — Part 6

A full series to learn the JavaScript from zero

Muhammad Ali
3 min readJan 23, 2020

Up until now, we are not making to remember something. Everything wasn’t stored. But from today we’ll store some value in some variables. It’s like x = 5 in math!

We can do different things with the variables. Like add 5 on the variable or change the string stored there.

In JS we use var to initial a variable. There are some other methods also, but we’ll learn those method later. Because currently we are working with basic.

Now we can do var name = "nerdjfpb" and some other codes. For now don’t think about the undefined.

Now we can get value by just calling the variable name

We can do different stuff with the variable, we can change a variable just to new value and it will work like — change the occupation to web developer

We can add some value with occupation and save it inside of the same variable like-

Also we can do the old things we’ve done with values. example –

Keep practicing the stuff to learn more!

Originally it published on nerdjfpb blog. Check the git for codes.

you can connect with me in twitter, linkedin or instagram

--

--

Muhammad Ali
Muhammad Ali

Written by Muhammad Ali

An otaku who loves computer. Love to write and help others through my work. Have a look on my Instagram https://www.instagram.com/nerd_jfpb/

No responses yet