Basics of variables and constants in javascript
HTML-код
- Опубликовано: 21 авг 2024
- Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdo...
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit...
Videos in a proper sequence and with discussion support are available at my website (of course free). It's easier for me to address issues at one place, instead of drilling into every video. A quick word, please help others in the discussion too.
courses.learncodeonline.in/learn/Javascript-for-2018-developer
Hi Hitesh, I'm loving your channel, I've decided to start with JavaScript and when i need a break, Java itself, so i'll learn both at the same time kind of.
I have a simple question I'd love an answer too, with Javascript or Java, is it possible for me to make just a tiny little desktop program that you can click, that when clicked it can automatically open say, Google Chrome search window for you? I want to do this as nmy firsat program, simple little program, click it, in the little box it says "Connect", i click it, and the program goes and open google chrome for me as i have it set like that in the code. I just want to know if it's possible? Thanks!
let ram having money = 100
let money given to ram by sita = 25
let money given to ram by gita = 29
let total money ram have = ram having money + money given to ram by sita + money given to ram by gita
I have tried this code for practice, but it's not working. Can you please tell me why it isn't working ?
ohkk. sorry. I got that. camel case worked for me. Thanks alot hitesh sir.
Sir can you please tell me how can i use cmd on windows I tried but couldn't
Thanks for RAIN OF JAVASCRIPT
So much video in one day..
Your voice tone is just so encouraging ,Thank You Sir.
Hey guys hitesh back again with another episode of JavaScript we gonna break the record uploading videos in a day 😁
Love the way u explain...m beginner and its just perfect for me. Thanks
You are welcome
Simply One Word "OUTSTANDING" your videos are GREAT and the way you teach is amazing ....SIR THANKS VERY VERY MUCH
Dude, you're an incredibly good teacher.
Awesome tutorials sir you are doing so much for the people who don't even have enough money to buy tutorials on your website .This series also helps those who want to demo of your tutorials thank you so much
Thanks in a million! Great teachers are hard to find.
I know JS is smart language and a semicolon is optional in it but I think in my opinion using a semicolon is good practice until you are not using PUG instead of HTML, SASS instead of SCSS and JS, PYTHON, KOTLIN instead of JAVA, C,C++ or anything else ,where semicolon is mandatory. :)
its fun and awesome after watching your consistency
"Have patience, without patience u can never be a good programmer." u nicely said sir,
Watching this JS series to start the MERN Bootcamp which i bought today. #MERN@199.
#ThanksForAllYourAmazingVideos
Tha way people run NGOs for social services for the helpless people
In the same way you run the RUclips channel,we help people
Really really love u sir 😊👌👌👌👌👌👌
Thanx Sir dil se
Dear Sir,
you should make these programming tutorials on many languages they are very helpful and I am starting to like this already.
More are available on my website.
Amazing tutorial Hitesh, thank you for uploading free yet outstanding content.
its not working on cmd using windows.........so use........node fullname_of_the_file_with_path then press enter key...............
like node E:\foldername\filename then enter
One question related to " const". When we load a page that time const are assigned, generally data will be coming from back-end. So on page load whatever value is set in const will be there till the time till that session time only, if we change anything in back-end, the same will be apply on next page load? So do i assume that const will just hold its initial value only for that particular page load session?
4:42
All humans made mistakes!
All humans _will continue_ to make mistakes
We all are humans...(except some I think...)
#humans
Sir you are really a great teacher.
Thank you so much man!!! Java Script is much easier than c++ I learn so fast with you love ya!
Back to back 4th video.Yeah!!!
I am so thankfull to you, for making such videos for us.
i cannot believe you giving this for free
Thanks sir. I have been following you from a long time. Your videos helped me a lot. I want to go into web development. I have learned html and css. Now i want to learn JavaScript. You are using node.js here. I am little a bit confused how i can use this in web development? Please help me out in getting started.
Other than skills u do have a good vocal with awesome communications
Thanq for this course sir.....it's will improve my concept of js
Try make it a practice of using semi colon to close statements and you could have use the internal terminal in visual studio code.
Thanks Hitesh
awesome course sir
i m loving it
It's fun to learn with you sir ,thanks ❤️
just one word
AMAZING !!
i think we'll get all all part of this series.. saltue sir
bro you solved my problem thanks
Keep uploading😀😀
Upload more videos from the course sir😊😊
Showers of Javascript!!
Hey guys!! there s a faster way to run java scripts using the code runner extension, just search up code runner in vscode extension's tab and install it.
I love u man hitesh you are a great inspiration to me are you going to make Vue js. videos
hummmmm
i learned alot today i am 14 year kid i want to learn i play games so i want to make a game my self
Hi Hitesh
I can also use the variable without let as a keyword. Is it necessary to use let?
what's differences between "var" and "let" when we declare a variable brother?
Can you explain phases of web development for learning... Like fist html then css and next js.
Reply would be helpful!!
Sir I have encountered a interesting doubt
const string='java'
const STRING='script';
const String=' is Easy..!!'
console.log(string+STRING+String);
i got the output: javascript is Easy..!!
without any error but the VS Code editor show the three variable names String,STRING and string with three different colour...ideally all the variable names should have same colour
Sir please show some light on the situation what is happening ?
please explain difference between usage of let and var.
I have seen var used to represent a variable in JavaScript. Is there a specific rule of when to use let to represent a variable as opposed to var? Is one method better than the other?
Why are we using let to declare variable where we use var to declare in javascript
great javascript series...
please also do some practical use of javascript where we can learn real life applications BTW amazing videos 😍 😍
const name ='priyanth'
{
const name = 'Raju'
console.log(name);
}
In the above example am getting o/p raju how it is possible to change const value pls explain
i think their is another method too: console.log(first_name+ '\t '+last_name)
Sir are we getting the whole series today😀
nahhhh, not that quick because videos need to be polished and need to be in same audio and video quality.
Hi Hitesh, can u please explain difference between var and let keywords
Hey why youtube is not sending notifications?..
can you explain the diff bw var, const and let and their scopes?
Do we use the( let) keyword to declare variable?
Without let or var keyword my all variable smoothly work! So, why I use both? May I use these only using const keyword?
Awesome sir
Wow its very nice thanku soo much:)
always present sir
Hi, I am using windows 7 and in my cmd prompt , " node variables.js" is running but not showing the output, could you please help me out with any suggestions.........
"""""
let r = 33
let bonus = 20
let total = r + bonus
console.log(total);
/*
Exception: SyntaxError: redeclaration of let name
@Scratchpad/1:1:1
*/
"""""
now what is this sir?
So as I learned earlier that "var" is the keyword use to declare a variable. So why is it "let" here?
there are some subtle differences between their scopes
var is scoped to the nearest function block and let is scoped to the nearest enclosing block, which can be smaller than a function block. Both are global if outside any block.
what's the difference between a var and let
Great sir
Thank you sir
thankuuu sir....
hey, I am a IT student and i have learn java Script basics before, we were writing it in and running in browser .
But what you did is completely different and we have't declared variables like that.and we never used node i am not getting why it is different.
I think you should start from 1st video.
let or var ? both of them are different? or same ?
Name =20; also works y?? Even if its not declared
Can we have var as variable instead of let ?
What is difference in using let and var in JS... can't find it
whats difference between var and let?
Can i use the terminal in vs code to produce the output?
Sir we r using var insted of let than whats differnce in that?
var and let are the same and totalscore is not printing in browser.
how to use javascript with html for example created a button using html and want to work this button then how it posible
What would happen if u add name and bonus.??
after running the program in command prompt the output is not showing please help sir
can't we run those codes in that GUI environment/ide bcoz I don't like to use the command prompt or terminal
what is difference between "let" and "var".
why dont you use Var instead of let. i ask because im learning based on Var. im just asking :)
please tell how to download the sublime text that u are using............provide link for every things.................
why dont u use var name=‘john’; please explain .
Sir which theme are u using in Vs?
RUclips is gonna be mad it not even sending me a notification
#dumb_RUclips
let firstName = 'John'
let lastName = 'Doe'
console.log(firstName + ' ' + lastName)
it print the single name what if we print multiple name?
space in single quote
My Command Prompt Doesn't work :( Can you help?
hi hitesh ,
whats the difference between 'aman' and "aman" , using single quote and double quote ?
Aman Shrivastava there is no difference in there it's just depends on preference to use single or double quotes
izaan jahangir thanks
make a video about progressive web app and it's future
What is node.js???please explain me in detail sir
I am writing the code in Visual Study. Can anyone please help me that is how to run the code. I have typed but is not able to run it. Please help me
hello sir, while using let name = "John" and console.log(name), the error of name is @depreciated is coming, even after using var. how do i solve this error? pls help sir and other fellow users...
let name= "john";
console.log(name);
Hello Sir, if I am adding 100.0 and 20 , why the result is not coming in decimal number?
The result of addition is "120.0", which is nothing but "120". may be that is why it not showing up decimal or float numbers. Please try to add with 100.05 or give any integer after 100.0, that should give you decimal value in the addition result.
when i write let is showing error in dreamwever
good video :)
Hey sir, We can call variable by 'VAR'
Yep, but let and const are more of a standard now.
How can I setup my atom for different languages I don't know how to do it..
how to update the node -v in ubuntu...
while runing variable.js
following msg appear in my terminal--/home/harendra/hiteshSir/variable.js:1
(function (exports, require, module, __filename, __dirname) { let name = 'john';
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
present sir
Nice :)
great :)