en
Feedback
Software programing

Software programing

Open in Telegram

This is a channel which gives tutorial on different programming languages, android tips and tricks best apps etc...

Show more
1 471
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
Send me the source code @Fikire2 to full fill ur quest.

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

To relate it with our today's topic... out puts name of the user.

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.

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.

Use alert method to make pop up box for the user. Just write this simple code alert("ur message fr the user");

But the thing am going to show u now is dynamic.

by the way when we are learning u may have not seen any additional feature in js comparing to HTML.

JavaScript use all arthimetic and modules operations. Sign. Value +. addition - subtraction * multiplication / division % modules

The modules outputs the remainder of the operands var a=4%4 the above code outputs 0 because it out puts a remainder.

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.

operators in JavaScript

For example... var 12abc is wrong But var _abc is available

U can start variable names with _ but u can't use - because it is reserved for addition.

Variable name cannot start with numbers and cannot contain special symbols.

Naming variables follows simple regulations

Naming variables

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

U can see there how variables are useful. U can call it for the entire coding to application or to displayed.

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.