Java Script is the language for scripting inside a web page in the browser. Despite the name and similarity in syntax it is not related to Java at all. It is related to ECMAScript.
A primitive value would be one of the following:
undefined, null, Boolean, number or string.
Object, Function, Array, String, Boolean, Number, Math, Date, RegExp, JSON and Error objects.