JavaScript – 20. Local and global variables



In this video, we look at local and global variables in JavaScript. Local variables are variables declared inside functions, and could not be accessed outside the functions. Local variables are variables declared outside of functions, and can be accessed from anywhere within the document; even from inside of functions.

source

Reply

Build A Site Info