“4.7.2. Verbindungszuweisungsoperatoren” Code-Antworten

4.7.2. Verbindungszuweisungsoperatoren

/*This action is so common, in fact, that it has a shorthand operator,
+=. The following example has the same behavior as the one above.*/

let x = 1;
x += 1;

console.log(x);

//2
Tough Tortoise

4.7.2. Verbindungszuweisungsoperatoren

/*A common programming task is to update the value of a variable in
reference to itself.*/

let x = 1;
x = x + 1;

console.log(x);

//2
Tough Tortoise

Ähnliche Antworten wie “4.7.2. Verbindungszuweisungsoperatoren”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen