JavaScript Boolean

Reference data type

  1. Object literal { }
  2. Function ( )
  3. Array []

Primitive data type

  1. String "..."
  2. Number 26
  3. BigInt BigInt(78**61)
  4. undefined
  5. null
  6. Boolean true || false
  7. Symbol

👉 Boolean : is only true || false

Example 1

console.log(5 > 3)   👉   true

Example 2

let arr=["ali", 26.2];

console.log( arr.includes(26.2) )   👉   true

Boolean & if condition

ما هى علاقة if condition بالــــ true && false ؟؟؟

ج/ هقولك فى الفيديو الخاص بهذا الدرس 🧡

Logical Operators
Operatorsالشرح
&&and
||or
!not
Comparison Operators
true || false
Operatorsالشرح
!=not equal
==equal value
===equal value and equal data type
>=greater than or equal to
<=less than or equal to

هنا تجد أهم أنواع الـ data Types

هنا تجد جميع الــ Operators

js comparison exercise js conditions exercise

😡
انت مشغل الـ AdBlock !!

ياريت تقفله لوسمحت 😊 😊

تنبيه هام ✋

إذا كانت الإعلانات مزعجة بالنسبة لك، فيُمكنك التبرع ب50$ وسيتم إيقاف الإعلانات لمدة شهر لجميع زوار الموقع 🧡 ويُمكنك التواصل معنا عن طريق صفحة الفيس بوك