No "var" is still usable in the exact same way as before. Of cause we now have "let" which is nearly identical to "var" (minus the issue with scope declaration), but because so many existing websites today still has "var" used in them we still need to learn about "var". And I'm also sure there are still websites today being produced where "var" is still being used. But yes if you are asking me why I'm focusing on "var" in this lesson, it is because it is tough to talk about how "let" benefits the code when I haven't taught about scopes, loops or functions yet. But once I get there I will make sure to do a great episode on "let" and "const" ;) And mention that it should be considered to use it instead of "var".
Let the saga begin Not so far away, and not so long ago in a land called Code, there was a king and his name was Var. He ruled over many lands. He was a good king but he had some problems. One of the kingdoms King Var ruled over had become very tired of King Var problems. This land was called JavaScript. One day in the land of JavaScript, some Integers, Sub Strings, and Boolean declared in a common statement, Var is King, Long live King Var, but throughout the kingdom of JavaScript there was silence. The land of JavaScript had chosen new rulers. A king and a Queen named King Let and Queen Const. Now what will become of the land of JavaScript, and their relationship to the other nations in the land of Code. What will become of their special partnership with the land of The Internet where King Var rules with an iron fist with Baron Von PSP. What about all the poor scribes, who will they follow? Will they follow King Var who they are familiar with, or the unfamiliar King Let who shares his power with Queen Const, whose time and paths are mostly unproven, and disconnected with the past. All of this will need to be fixed and rewritten. Here begins our mighty story. Let the saga begin.
LOL let theSaga = "begin"; //place hold till future time { null (); } Great stuff you have here, I'm so glad to have found your channel. you have a great gift at explaining things that can be rather confusing, and boring, in a clear, concise, and interesting way. kudos to you.
Guys this is the best course out there for beginners. I've been bashing heads with JS for 10 days with different courses online and I didn't even understand the basics. But this guy explains it very well. Great Job!
I want to thank you from the bottom of my heart. After many attempts to learn web development, you are the first one that makes me understand and enjoy what I am learning. I love and appreciate your thorough approach. You are a great teacher :)
I'm taking JS online through my local college, and we're primarily using the textbook. As I read and take notes in the text book, I often barely understand what I'm reading, if at all. It's been miserable. I've just watched two videos of yours, and already things are starting to make sense. You're explanations are clear, simple, and easy to follow. Cheers :)
sir i have been watching too many javascript tutorial videos but your tutorial series are the ones that really made sense, really understandable clear and precise. i also saw your OOP PHP tutorial it was easy to understand. thank you
Thank you for explaning var in the simplest way possible. Every video I've seen before this jumped to let and const right away but i need to learn the basics of var first. Thank you for doing this!
hey daniel! im taking a web development bootcamp and just started JavaScript. Probably the hardest thing I am learning. I’m hoping that watching your videos will help me. I get so confused when making functions that include everything together lol. i cant even write a function for a simple guessing game 😢
Hej Daniel, jeg er startet i Oktober med at lærer HTML, CSS og nu JavaScript. Jeg bor i Belgien og følger et engelsk talende kursus her. Jeg er kørt lidt død i JS, synes det bare er rigtig mange ting på den gang. Jeg fandt dine videoer som jeg nu ser igennem og håber der går et lys op for mig LOL Tak fordi du har brugt tid på at lave disse videoer til at hjælpe andre (som mig) der gerne vil ind i IT branchen ;)
As usual excellent work! One small point, however. A const is not a variable but a constant; variables can have their values changed (varied) but constants always have the value they are originally assigned. By the way, I wonder if we're related?! :D
Yes you are absolutely right :) it sorta goes without saying that "var" (something that can varie in value), of cause can't be constant. I have a habbit of grouping var, let and const together, as "types of variables" since they are all similar tools used to store data.
You mentioned that in some cases, you may want to use var a; a = 10 vs. var a = 10; . In what case would that occur? By the way, thanks for these solid videos!!
HELLO ,.... i have just started watching your javaScript videos ,.... but i have a doubt tha is your videos are still good to learn ? becaues is there any updates/someting new we should learn in javascript in 2022 ....? :-)
I explained it at that exact time stamp hehe. 🙂 Yes it did get declared automatically, and I explain further in a later video. If you wanna find that video, it’s the one about “hoisting”.
I just finished writing this guide to JavaScript variables for beginners. You might find it helpful: www.danielpuiatti.com/getting-started-with-javascript-variables/
Guys am new to JavaScript but aren’t we supposed to be working everything in a JavaScript file like we did to html??? I mean shouldn’t we create something like index.is then work in it???
I NEED HELP!!!! Am a new learner in programming and web development....Please y’all, i need a study partner, cause I don’t I understand some things. Whoever can help, let me know. Thanks 🙏🏼
Thought var was dead.
No "var" is still usable in the exact same way as before. Of cause we now have "let" which is nearly identical to "var" (minus the issue with scope declaration), but because so many existing websites today still has "var" used in them we still need to learn about "var". And I'm also sure there are still websites today being produced where "var" is still being used. But yes if you are asking me why I'm focusing on "var" in this lesson, it is because it is tough to talk about how "let" benefits the code when I haven't taught about scopes, loops or functions yet. But once I get there I will make sure to do a great episode on "let" and "const" ;) And mention that it should be considered to use it instead of "var".
Let the saga begin
Not so far away, and not so long ago in a land called Code, there was a king and his name was Var.
He ruled over many lands. He was a good king but he had some problems. One of the kingdoms King Var ruled over had become very tired of King Var problems. This land was called JavaScript.
One day in the land of JavaScript, some Integers, Sub Strings, and Boolean declared in a common statement, Var is King, Long live King Var, but throughout the kingdom of JavaScript there was silence.
The land of JavaScript had chosen new rulers. A king and a Queen named King Let and Queen Const.
Now what will become of the land of JavaScript, and their relationship to the other nations in the land of Code. What will become of their special partnership with the land of The Internet where King Var rules with an iron fist with Baron Von PSP. What about all the poor scribes, who will they follow?
Will they follow King Var who they are familiar with, or the unfamiliar King Let who shares his power with Queen Const, whose time and paths are mostly unproven, and disconnected with the past. All of this will need to be fixed and rewritten. Here begins our mighty story.
Let the saga begin.
you have way too much time on your hands
LOL
let theSaga = "begin";
//place hold till future time
{ null (); }
Great stuff you have here, I'm so glad to have found your channel.
you have a great gift at explaining things that can be rather confusing, and boring, in a clear, concise, and interesting way. kudos to you.
Please can you help me solve my problem? In JavaScript, when I write the word name then it council it doesn't work as a variable
Guys this is the best course out there for beginners. I've been bashing heads with JS for 10 days with different courses online and I didn't even understand the basics. But this guy explains it very well. Great Job!
I 100% agree with that .. Daniel has didatics.
I want to thank you from the bottom of my heart. After many attempts to learn web development, you are the first one that makes me understand and enjoy what I am learning. I love and appreciate your thorough approach. You are a great teacher :)
Thank you :) that means a lot to me to hear and I am glad you enjoy learning. That's how you get the most out of it!
I'm taking JS online through my local college, and we're primarily using the textbook. As I read and take notes in the text book, I often barely understand what I'm reading, if at all. It's been miserable. I've just watched two videos of yours, and already things are starting to make sense. You're explanations are clear, simple, and easy to follow. Cheers :)
sir i have been watching too many javascript tutorial videos but your tutorial series are the ones that really made sense, really understandable clear and precise. i also saw your OOP PHP tutorial it was easy to understand. thank you
Thank you for explaning var in the simplest way possible. Every video I've seen before this jumped to let and const right away but i need to learn the basics of var first. Thank you for doing this!
Really loving this course so far! Hope you can come out with the next one soon!
Very explanatory, easy to follow and understandable too. Thank you so much!!!!!
Thank you... Very good for beginner like me
hey daniel! im taking a web development bootcamp and just started JavaScript. Probably the hardest thing I am learning.
I’m hoping that watching your videos will help me. I get so confused when making functions that include everything together lol. i cant even write a function for a simple guessing game 😢
you are so amazing thank you for sharing your knowledge with us. This is egalitarianism. THANK YOU.
Definitely 377K subs has a reason to be...kkk....Congrats for the quality of your material, man.
I'm here! 😎 Great video, just posting a comment to show some support! Keep up the good work. 🤙
Good thought you have there. Keep on the good work.
You explain this way better than my computer science professor does 😅
Hej Daniel, jeg er startet i Oktober med at lærer HTML, CSS og nu JavaScript. Jeg bor i Belgien og følger et engelsk talende kursus her. Jeg er kørt lidt død i JS, synes det bare er rigtig mange ting på den gang. Jeg fandt dine videoer som jeg nu ser igennem og håber der går et lys op for mig LOL Tak fordi du har brugt tid på at lave disse videoer til at hjælpe andre (som mig) der gerne vil ind i IT branchen ;)
As usual excellent work! One small point, however. A const is not a variable but a constant; variables can have their values changed (varied) but constants always have the value they are originally assigned. By the way, I wonder if we're related?! :D
Yes you are absolutely right :) it sorta goes without saying that "var" (something that can varie in value), of cause can't be constant. I have a habbit of grouping var, let and const together, as "types of variables" since they are all similar tools used to store data.
I like your style of teaching, it's very clear :)
I started supporting you on patreon!!
Awesome! :D
Thanks very much for your great lessons...
Good video, looking forward more advanced topics :)
Thank you very much for these videos. You are doing excellent work and it is invaluable. I've become a patreon.
love these tutorials thank you!
Good explanation mate you earned a sub.
Can you make a video about how you create tabs and nested tabs. that's should be great.
your vids are very good for learnings!!
Thank you!
Beautiful , thanks a lot
awesome and great work!
Great job! Thanks)
Thank you
very nice video , good job , i was wondering can we pass variable to href?
Amazing explain! Liked and sub
Awesome
You mentioned that in some cases, you may want to use var a; a = 10 vs. var a = 10; . In what case would that occur? By the way, thanks for these solid videos!!
Also following
Good video
Dude, I have a javascript geolocating script, it works great, but how do I allow access to the info in my coldfusion code? Thx
Please, make tutorial Wordpress Premium Plugin Development. Thank You.
Well, I knew it, how can i multiply elements Ex( Div with text within) using javascript
this tutorial is old enough for 2021, lots of changes come in Javascript.
HELLO ,.... i have just started watching your javaScript videos ,.... but i have a doubt tha is your videos are still good to learn ? becaues is there any updates/someting new we should learn in javascript in 2022 ....? :-)
The videos are still perfectly viable :)
Hi man can you please make tutorials on Java?
The codes I write within the script tag doesn't make color, please helpp
Mate, what technologies should i know to develop Progressive Web Apps, are you familiar with that topic?
Please can you help me solve my problem? In JavaScript, when I write the word name then it council it doesn't work as a variable
there was a way to define a variable in middle of the code or print statement with = or something sign. I forgot, can someone tell me what it was.
At 7:45, where it still ran when you did not declare “a”, did the code automatically declare it as a “var”?? Thanks!
I explained it at that exact time stamp hehe. 🙂 Yes it did get declared automatically, and I explain further in a later video. If you wanna find that video, it’s the one about “hoisting”.
💪
Gosh damn your taskbar is messed up ermagherd
I just finished writing this guide to JavaScript variables for beginners. You might find it helpful: www.danielpuiatti.com/getting-started-with-javascript-variables/
I swear I feel like I'm learning visual logic again.
The code I write within the "script" tag doesn't get colored. Any idea why that is?
Same, need help
Guys am new to JavaScript but aren’t we supposed to be working everything in a JavaScript file like we did to html??? I mean shouldn’t we create something like index.is then work in it???
Yes 🙂 I also get to that a few episodes later I believe
@@Dani_Krossing thank you
hi Dani
You don't need variables in javascript, everything works just fine without them.
I NEED HELP!!!!
Am a new learner in programming and web development....Please y’all, i need a study partner, cause I don’t I understand some things. Whoever can help, let me know. Thanks 🙏🏼
he sounds like brackeys
Whats ur name?
Talking more teaching less, More theory less practical
I Would never buy anything that is promoted on youtube especially something that disturbs my video!