arrays.js


/**
 * Just an Array
 * @type {Array}
 */
const age = [18, 22, 17, 30, true, {}, "hello"];

/**
 * Array of Number
 * @type {Array<Number>}
 */
const scores = [10, 19.9, 20.0, 33,3, 17.4 ];
// const scores = [10, 19.9, 20.0, 33,3, 17.4, true];

/**
 * Arrays of intengers and strings
 * @type {Array<Number | String>}
 */
const strnum = [10, 20, "30", 110, 100];

/**
 * Arrays of names
 * @type {Array<String>}
 */

const names = ["ryan", "joe", "carlos"];
// names.push(33);