المعرفة:: JavaScript الحالة::مؤرشفة المراجع:: JavaScript Essential Training Data Types /** * Data types in JavaScript * @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures */ // String: let stringDemo = "A string of text."; console.log("String:", stringDemo); // Numbes: let integerDemo = 4; console.log("Integer:", integerDemo); let floatDemo = 5.6; console.log("Floating point number:", floatDemo); // Boolean: let booleanDemo = true; console.log("Boolean value:", booleanDemo); // Null value (nothing): let nullDemo = null; console.log("Null value:", nullDemo); // Undefined: let undefinedDemo; console.log("Undefined:", undefinedDemo); let undefinedAssignedDemo = undefined; console.log("Undefined assigned:", undefinedAssignedDemo); // Object: const objectDemo = { dance: "Mambo", number: 5, }; console.log("Object:", objectDemo); // Array: const arrayDemo = ["tango", "foxtrot", "waltz", "rumba", "bolero"]; console.log("Array:", arrayDemo);