In this video tutorial we will study and understand the concept of Variables & Data Types in JavaScript.
Variables –
Following are some basic definitions of variables in a typical programming language context.
A variable provides us with a named storage that our programs can manipulate. It is the basic unit of storage in a program.
Variables are used to store information to be referenced & manipulated in a computer program.
In programming, a variable is a value that can be changed depending on the conditions or information being passed to the program.
Data Types –
Datatypes are basically type of data that can be used and manipulated in a program. For e.g. numbers(1, 2, 5,5), string(“hello Simple Snippets”, “JS”), boolean(true, false) etc.
JavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript.(as shown in the diagram above)
Primitive data type (string, number, boolean, null, undefined)
Non-primitive (reference) data type (objects, arrays)
For Program code, info & more resources checkout this article –
Video by – Tanmay Sakpal
Simple Snippets Channel link – https://www.youtube.com/simplesnippets
Original source
34 responses to “#6 JavaScript Tutorial | Variables & Data Types”
Nicely explained tutorials..thnx
subbing
Nice flow,ur vedios r really helping
If we use external js file and after that we write line like
<script src="file location ">
document.write("hello world");
</script>
My query is that my external file is running but the line that i write after that is not displayed.
i am using visual code
after writing document.write("name");
my program is not running the output is name which is given into the parentheses instead of my name which i wrote..
Thanks …they are easy to understand…keep it up!
Now I feel that js is quite easy !
Where is navin
document.write("is it important to have typing speed?");
/* just asking………
*/
but why use document.write() for printing stuff instead of console.log() method. Also can't we just use the javascript coding part without the html part and see the output in the console?
Go live is not working
your javascript series is really awesome ,it helped me lot. I humble request to you please create series for java language.
Please tell us the use of null & undefined
Thanks sir I liked ur explanation 👍👌 and it is understandable.
Ok It was nice Explanation. But I have one dought that I am showing here!!!
<script>
var num=34;
var name="Mohit";
document.write( "<b/>" + num);
document.write("<br>");
document.write(name);
</script>
output:
34
(in bold)
Mohit(in bold)
Why javascript showing Mohit in bold!! Run this code in your browser you will get it!! Thank you in Advance!!!
Can you please tell any Java Script reference book Name
It looked better in dark theme sir
Well Done!
Can you please discuss scope of variable in JS ?
Is there any concept of static in JS ?
What the size and range of var date type that is loosly type…how it will find?..thanks sir good explaination..
Sorry sir in java tutorial I have discussing my doubts related to Python so plz forgive me
Sir I m a CA student and want to learn VBA but like your video related to python now I m learning python with your video series but now I confused that python can make balance sheet or other financial report for me .
Sorry once again sir due to write a big post sir plz make telegram group for asking a qus.
Thanks alot sir
Im waiting for your next video ")
what is the diff b/n let x=9 and var x=9?
Sir can i join and learn python
Very well explained:)
Thank you.!
What is Hadoop ?
Thanks sir for teaching about the variable and data types
thank you very much sir for this video
Good work. Very good to listen in continue as Telusko
Thank you sir loving your work please upload daily
Thanq boss
The best video for JavaScript 😊👌
ThanQ sir….awome delivaring the content
Super explanation sir
But I couldn't understand, why do I listen you saying "peace" or "please" at the end of every video?