JavaScript Tutorial for Beginners - 15 - Global and local variables

preview_player
Показать описание
In this video we examine the global and local variables.
Рекомендации по теме
Комментарии
Автор

I honestly don't understand why anyone would give your vids a thumbs down. Great tutorials, I am learning so much. Thank you.

micahsmith
Автор

After searching entire youtube, I found best tutorial of Javascript... awesome

vnyaryan
Автор

I didn't understand the " function return " concept but now I do, thank you Ej Media.

vikacademy
Автор

Can not explain. How great this tutorial series is!

jaker
Автор

Thanks, i just got cleared with concept when you said in your last video that it's not a good practice to write a variable without a var keyword, best videos my bro you're awesome :* <3

UmairAli
Автор

Great tutorial and explanations. Cheers from Romania.

COBRAable
Автор

omg epic explain (EJ media 🔥🔥🔥🔥🔥🔥🔥🔥) from 2021

MysticCheat
Автор

Amazing videos. Thank you so much. They are helpful

N.B. If you could please increase the font size maybe my eyes would be grateful 🧐😅

AL-fmtn
Автор

Best Tutorials ever! hoping for a c# tutorial w/ database connection please?? Keep up the good work

kaliposh
Автор

So simple, so useful .thank you so much

dashassas
Автор

Do I need to declare a var in the js file to validate data entered in a linked html form? Have you filmed a video dealing with this type of validation? Thanks!

darrenfloyd
Автор

how about we want to use 'console.log' instead of 'document.write'?

trialdy_khs
Автор

did this concept changed in 2019? Sarah did display on my webpage even though I entered name2 inside document.write which was outside the function?
var name="Henry" ;

function printName () {

name2="Sarah";
}
printName () ; // call function

document.write(name2) ;

natnaelteshome
Автор

Hi
I have one doubt can u please clear dat is below

var name="henry";
function printName()
{
var name2="sarah";
document.write(name);
}
printName()

is it possible to use global variable inside function?
what is the output?

harishd
Автор

Thanks for the video.
Java is similar to C.
"BUT i still don't know how and where I can use this in WEB design.😕😕 can u give me a link of video where a web page is created with the help of java script . please please 😫
If any one know about it then Please reply me and help me😫☺️☺️☺️☺️

whoisankit_
Автор

U said that If we don't prefix 'var' for a variable inside a function, it will be treated as global variable. So we can access that variable outside the function as well. But that not working ☹️. Where I have gone wrong. If someone can explain, I'll be glad

farizma
Автор

This didn't work for me at all.
I don't know why.

deborahbrown
Автор

2:38 Don't get "Sarah", ...

tigerwuli
Автор

name=Henry, name2=Sarah document.write(feminists are triggered); ))))

mkrfogb