freeCodeCamp/guide/arabic/javascript/naming-convention-for-javas.../index.md

26 lines
972 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
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";
`