نتيجة التعيين
ما هي قيم a
وx
بعد الكود أدناه؟
let a = 2;
let x = 1 + (a *= 2);
الإجابة هي:
a = 4
(multiplied by 2)x = 5
(calculated as 1 + 4)
ما هي قيم a
وx
بعد الكود أدناه؟
let a = 2;
let x = 1 + (a *= 2);
الإجابة هي:
a = 4
(multiplied by 2)x = 5
(calculated as 1 + 4)