freeCodeCamp/guide/arabic/certifications/javascript-algorithms-and-d.../basic-javascript/compound-assignment-with-au.../index.md

537 B

title localeTitle
Compound Assignment With Augmented Multiplication مهمة مركبة مع تكاثر مضاعف

مهمة مركبة مع تكاثر مضاعف

قراءة أجهزة الكمبيوتر من اليسار إلى اليمين. لذا ، فإن استخدام عامل تخصيص الضرب يعني أن المتغير قد تضاعف مع الرقم الموجود على اليمين ، ثم يتم تعيين المتغير للمنتج. مثل ذلك:

var c = 2; c *= 3; // Now, 'c' is equal to 6