freeCodeCamp/guide/arabic/certifications/javascript-algorithms-and-d.../debugging/catch-misspelled-variable-a.../index.md

25 lines
898 B
Markdown
Raw Normal View History

---
title: Catch Misspelled Variable and Function Names
localeTitle: القبض على المتغيرات التي بها أخطاء في الأسماء والأسماء الدالة
---
## القبض على المتغيرات التي بها أخطاء في الأسماء والأسماء الدالة
### شرح المشكلة:
قم بإصلاح الخطأين الإملائيين في التعليمات البرمجية بحيث يعمل الحساب netWorkingCapital.
### ملحوظة
تحقق من هجاء المتغيرات الأولى والثانية عند استخدامها.
## تنبيه المفسد!
**الحل في المستقبل!**
``// 'i' and 'e' swapped in "receivables" and missing 's' in "payables"
let receivables = 10;
let payables = 8;
let netWorkingCapital = receivables - payables;
console.log(`Net working capital is: ${netWorkingCapital}`);
``