Java Script Notes For Professionals

Java Script Notes For Professionals.

This JavaScript® Notes for Professionals book is compiled from Stack Overflow. Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA, see credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified.
This is an unofficial free book created for educational purposes and is not ffiliated with official JavaScript® group(s) or company(s) nor Stack Overflow. All trademarks and registered trademarks are the property of their respective company owners.

Java Script Notes For Professionals

Using a Variable.

var number1 = 5; number1 = 3;
Here, we defined a number called "number1" which was equal to 5. However, on the second line, we changed the value to 3.
To show the value of a variable, we log it to the console or use window.alert():
console.log(number1); // 3 window.alert(number1); // 3
To add, subtract, multiply, divide, etc., we do like so:
numberl = numberl +5; //3+5=8
numberl = numberl - 6; // 8 - 6 = 2
var number2 = numberl * 16; // 2 (times) 70 = 20
var number3 = number2 / number1; // 20 (divided by) 2 = 70;
We can also add strings which will concatenate them, or put them together.
For example: var myString = "I am a " + "string!"; // "I am a string!"




Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу Java Script Notes For Professionals - fileskachat.com, быстрое и бесплатное скачивание.

Скачать pdf
Ниже можно купить эту книгу по лучшей цене со скидкой с доставкой по всей России.Купить эту книгу



Скачать - pdf - Яндекс.Диск.


Дата публикации:





Хештеги: