Javascript has five primitive data types: 1. number 2. line 3. boolean 4. undefined 5. null
Everything that does not belong to any of these five primitive types is considered an object.
The first 3 data types have a corresponding object constructor. for example
var word = "something";
And then as an object:
var word = new String("something");
new
. .
,
var greeting = "something";
var word = new String("something");
greeting == word ----> True as their value is same
greeting === word -----> False because there value same but type is different .
var , , Javascript . , , (, Java, ++).
javascript . . , :
https://en.wikipedia.org/wiki/Type_system#Static_and_dynamic_type_checking_in_practice
, .