Files
freeCodeCamp/guide/arabic/javascript/naming-convention-for-javascript/index.md
2018-10-16 21:32:40 +05:30

26 lines
972 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Naming Convention for JavaScript
localeTitle: تسمية الاتفاقية لجافا سكريبت
---
هنا سوف تحصل على نظرة عامة على حالات الأكواد المختلفة التي يتم استخدامها على نطاق واسع.
## camelCase
في البرمجة ، يبدو تنسيق camelCase لأسماء المتغيرات كما يلي:
`var camelCase = "lower-case first word, capitalize each subsequent word";
`
## PascalCase
PascalCase (أو CamelCase) هو البديل من camelCase. وهو يختلف عن camelCase من خلال الاستفادة من كل كلمة ، _بما_ في _ذلك_ الكلمة الأولى:
`var PascalCase = "upper-case every word";
`
## snake\_case
هناك حالة شائعة أخرى تسمى snake\_case تفصل كل كلمة بها شرطات سفلية بهذه الطريقة:
`var snake_case = "lower-case everything, but separate words with underscores";
`