
x32x01
أدارة أكتب كود
- بواسطة x32x01 ||
ما ھو js ولماذا نستخدمھا وھل تستخدم فقط في الفرونت أم تستخدم في اختصاصات أخرى ؟

أي ھو مفھومك عن console.Log ؟

console.log()
هي دالة في لغة جافا سكربت (JavaScript) تستخدم لإرسال رسائل تحتوي على نص إلى وحدة التحكم (console) في المتصفح أو في برنامج تطبيق الويب. تستخدم هذه الدالة للتحقق من قيم متغيرات أو لإظهار رسائل تنبيهية أو للتأكيد على إنجاز عمليات معينة. على سبيل المثال، يمكن استخدام console.log() لطباعة رسالة تحتوي على قيمة متغير معين، مثل console.log("قيمة المتغير هي: " + x) ، حيث x هو اسم المتغير.
كم نوع من comment عندنا ؟

1 تعليقات سطر واحد Single Line comments
2 تعليقات متعددة الأسطر Multi-line comments
أي ھي الطرق حتى نظھر البيانات في صفحتنا ؟

1-
console.log()
2-
document.write()
3-
document.alert()
4-
innerHtml
اي ھو مفھومك عن console. error؟

اي ھو مميزات Es6 ؟

ما ھي أنواع البيانات في js ؟

لقيم العددية ( Numbers )
القيم النصية ( Strings )
القيم المنطقية ( Booleans )
القيم الكائنية ( Objects )
المصفوفات ( Arrays )
الدوال ( Functions )
ما ھو الفرق بين Const و Let و Var ؟

ما ھي طرق التسمية الخاصة بالمتغيرات ؟

أي ھي الطرق حتى نعمل Escape line في js ؟

؛ \n
يتم استبداله برمز السطر الجديد newline.؛ \t
يتم استبداله بالرمز tab.؛ \r
يتم استبداله برمز carriage-return الذي يعمل على تحريك المؤشر إلى بداية السطر دون التقدم إلى السطر التالي.؛ \b
يتم استبداله برمز المسافة للخلف backspace؛ \\
يتم استبدالهما بشرطة مائلة واحدة للخلف (\)
اي ھو مفھومك عن الـ Concatenation ؟

أكتبو صيغة كتابة الـ template literals .. وما ھي اسم ھذه العلامة ``

Console.log(${x})
وتسمى`` بالباك تك
اي الفرق لو كتبنا n++ و ++n ؟

n++ [ post increment ]
بيحط الرقم ويطبعه وبعد كدا يزود عليه ولازم اكتب الكلمه تاني عشان يطلعي الاوت بوت النهائي بعد الاضافه ++n [pre increment]
دي بيزود الرقم الاول وبعدين يطبع Code:
int a = 2
int b = ++a -> b = 3 و a = 3
int b = a++ -> b = 2 و a = 3
a++ تعطي نفس القيمة الاصلية
ما ھو مفھومك عن unary operators ؟

unary operators ده بيرجع الرقم وفيه منه نوعين unary pluse ده بيرجع رقم لو هوا مش رقم مثال "10" دي استرنج نحولها كدا عشان تبقي رقم +10 تعطي رقم وليس استرنج
أما ال unary navigate دي بترجع الرقم بالسالب لانك بتحط قبلها سالب سواء رقم او رقم استرنج
False=0
True= 1
ويممكن أيضا احول الرقم الاسترنج ل رقم عادي عن طريق
console.log (Number ("100"))
التعديل الأخير: