Share
Go down
Admin
Posts : 13
Join date : 2017-10-16
View user profilehttp://jaylenebarias.forumotion.asia

JavaScript Assignment

on Mon Oct 16, 2017 8:56 pm
JavaScript Assignment Operators
Assignment operators assign values to JavaScript variables.

Assignment Examples
The = assignment operator assigns a value to a variable.

Assignment
var x = 10;

The += assignment operator adds a value to a variable.

Assignment
var x = 10;
x += 5;

The -= assignment operator subtracts a value from a variable.

Assignment
var x = 10;
x -= 5;

The *= assignment operator multiplies a variable.

Assignment
var x = 10;
x *= 5;

The /= assignment divides a variable.


Assignment
var x = 10;
x /= 5;

The %= assignment operator assigns a remainder to a variable.

Assignment
var x = 10;
x %= 5;
Member
Member
Posts : 4
Join date : 2017-10-16
View user profile

Re: JavaScript Assignment

on Mon Oct 16, 2017 9:43 pm
Where does this javascript assignment operators commonly used?
Admin
Posts : 13
Join date : 2017-10-16
View user profilehttp://jaylenebarias.forumotion.asia

Re: JavaScript Assignment

on Mon Oct 16, 2017 10:47 pm
the usually assignment operator commonly use is the a assignment operator (=) equal sign because its a sign a value to a variables.
master
master
Posts : 7
Join date : 2017-10-16
View user profile

Re: JavaScript Assignment

on Mon Oct 16, 2017 10:55 pm
Angelsky214 wrote:Where does this javascript assignment operators commonly used?

I want to ask this question also ma'am jaylene hehehe waiting for your answer hihi
master
master
Posts : 7
Join date : 2017-10-16
View user profile

Re: JavaScript Assignment

on Mon Oct 16, 2017 10:56 pm
Admin wrote:the usually assignment operator commonly use is the  a assignment operator (=) equal sign because its a sign a value to a variables.

Thank you ma'am for the answer now, I know the most commonly used assignment operator Smile
master
master
Posts : 7
Join date : 2017-10-16
View user profile

Re: JavaScript Assignment

on Mon Oct 16, 2017 10:58 pm
Ma'am jaylene what is the relationship of JavaScript Assignment to JavaScript Arithmetic ?
Admin
Posts : 13
Join date : 2017-10-16
View user profilehttp://jaylenebarias.forumotion.asia

Re: JavaScript Assignment

on Wed Oct 18, 2017 2:53 pm
hi miss Liza the relationship of javascript arithmetic to javascript assignment is arithmetic . assignment assign the value while arithmetic do the operation
Sponsored content

Re: JavaScript Assignment

Back to top
Permissions in this forum:
You cannot reply to topics in this forum