2 - JavaScript Variables | JavaScript Tutorial for Beginners

Publicado em: 28 Maio 2020
no canal de: GoPHP
1,129
24

How do you add JavaScript to your page?
By using script tag.

Script tags can be placed in the body, or in the head section of an HTML page, or in both.

JavaScript output statements:
innerHTML | document.write() | window.alert() or alert() | console.log()

JavaScript Variables:
By using var keyword, we can declare variables.
A JavaScript variable can hold any type of data like numbers, strings, boolean etc..

Variable name declaration rules:
Names Contain letters, digits, underscores, and dollar signs.
Names must begin with a letter
Names can also begin with $ and _ (but we will not use it in this tutorial)
Names are case sensitive.
Reserved words (like JavaScript keywords) cannot be used as names

examples of valid variables
var institute = 'Gophp';
var city = 'Hyderabad';
var pincode = 500038
var price = 789.58;
var status = true;


Nesta página do site você pode assistir ao vídeo on-line 2 - JavaScript Variables | JavaScript Tutorial for Beginners duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário GoPHP 28 Maio 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,129 vezes e gostou 24 espectadores. Boa visualização!