"There are eight basic data types in JavaScript" is ambiguous (are objects considered "basic" ?). Javascript features seven (7) primitive datatypes and all objects are non-primitives. Source (MDN) : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures