Software programing
Ir al canal en Telegram
This is a channel which gives tutorial on different programming languages, android tips and tricks best apps etc...
Mostrar más1 471
Suscriptores
Sin datos24 horas
Sin datos7 días
Sin datos30 días
Archivo de publicaciones
1 471
quest of today: how to out put the age of a person by asking year of born.(the calculation must be done in relation to 2010/2018
1 471
The other pop up box is prompt which is use to take input from the user.
For example ..
The above code outputs inter ur name.
1 471
To relate it with today's lesson ...
var a=2;
var b=4;
var c=a*b
alert(c);
Used when I call the variable now it outputs 8 in an alert box.
1 471
Use alert method to make pop up box for the user.
Just write this simple code
alert("ur message fr the user");
1 471
by the way when we are learning u may have not seen any additional feature in js comparing to HTML.
1 471
JavaScript use all arthimetic and modules operations.
Sign. Value
+. addition
- subtraction
* multiplication
/ division
% modules
1 471
The modules outputs the remainder of the operands
var a=4%4
the above code outputs 0 because it out puts a remainder.
1 471
Variable's value can be changed when u change the value any where. for example
var a=100;
a=2;
U see now the value of aid changed to 2.
1 471
U can start variable names with _ but u can't use - because it is reserved for addition.
1 471
Variable is A very deep topic so we will make a long journey on it. But I wana know he many of u are attending it seriously at @Fikire2
1 471
U can see there how variables are useful. U can call it for the entire coding to application
or to displayed.
1 471
U see there I declared a variable called a. And I assigned a number 100 to it.
And on the next line I called the variable that created.
