variable declaration and initialization in javascript #4

Publicado em: 29 Setembro 2023
no canal de: Tecki Ajay
112
5

#teckiajay #ajaybudaniya #javascript
!!! variable declaration and initialization in javascript #4 !!!

Playlist -    • JavaScript Complete Course Advance Level  

JavaScript Variables

Like many other programming languages, JavaScript has variables. Variables can be thought of as named containers. You can place data into these containers and then refer to the data simply by naming the container.

Before you use a variable in a JavaScript program, you must declare it. Variables are declared with the var keyword as follows. Storing a value in a variable is called variable initialization. You can do variable initialization at the time of variable creation or at a later point in time when you need that variable.

For instance, you might create a variable named money and assign the value 2000.50 to it later. For another variable, you can assign a value at the time of initialization as follows.

Note − Use the var keyword only for declaration or initialization, once for the life of any variable name in a document. You should not re-declare same variable twice.

JavaScript is untyped language. This means that a JavaScript variable can hold a value of any data type. Unlike many other languages, you don't have to tell JavaScript during variable declaration what type of value the variable will hold. The value type of a variable can change during the execution of a program and JavaScript takes care of it automatically.


Instagram -   / teckiajay  
Discord Server -   / discord  
Telegram channel - https://t.me/tecki_ajay

Thanks For Watching !
keep It up !


Nesta página do site você pode assistir ao vídeo on-line variable declaration and initialization in javascript #4 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Tecki Ajay 29 Setembro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 112 vezes e gostou 5 espectadores. Boa visualização!