HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p>On the previous step, you learned about three data types:</p>
1 <p>On the previous step, you learned about three data types:</p>
2 <ul><li>number for numbers,</li>
2 <ul><li>number for numbers,</li>
3 <li>string for strings,</li>
3 <li>string for strings,</li>
4 <li>boolean for logical or boolean values, true or false.</li>
4 <li>boolean for logical or boolean values, true or false.</li>
5 </ul><p>In reality, you learned about four data types. Special data type undefined contains just one value undefined.</p>
5 </ul><p>In reality, you learned about four data types. Special data type undefined contains just one value undefined.</p>
6 <p>By the way, the number type in JavaScript is intended for integers and non-integer numbers. In other languages, such numbers require different data types.</p>
6 <p>By the way, the number type in JavaScript is intended for integers and non-integer numbers. In other languages, such numbers require different data types.</p>
7 <p>Let’s now take a look at more complex or compound data types: array and object.</p>
7 <p>Let’s now take a look at more complex or compound data types: array and object.</p>
8 <p>Compound types contain more than one value. The array array stores the sequence of values , and the order of these values is important. The object object consists of a multitude of “key-value” pairs, and the order of these pairs is not important. These types of data are recorded as follows:</p>
8 <p>Compound types contain more than one value. The array array stores the sequence of values , and the order of these values is important. The object object consists of a multitude of “key-value” pairs, and the order of these pairs is not important. These types of data are recorded as follows:</p>
9 // Array [1, 2, 3, 4, 5] // Object {month: 'june', day: 15} // Logs array in the console console.log([1, 2, 3, 4, 5]); // Logs array in the console console.log({month: 'june', day: 15});<p>We will analyze each of these types of data later, in the courses that are still to come.</p>
9 // Array [1, 2, 3, 4, 5] // Object {month: 'june', day: 15} // Logs array in the console console.log([1, 2, 3, 4, 5]); // Logs array in the console console.log({month: 'june', day: 15});<p>We will analyze each of these types of data later, in the courses that are still to come.</p>