-
It introduces the problem that you cant easily access and extract specific values within the data set you are providing without the use of an array. Using an array allows for you to easily extract specific data samples from you data.
-
you can use the array variable type.
-
Properties are essentially characteristics of a value. Properties of values are things such as value length, the max or min of a value, etc.
-
Null and undefined do not have any properties whatsoever.
-
We can access properties through using dots or square brackets. The dots are use to get the property by using its name. The square brackets are used to get the property from a value or name.
-
Methods are properties that execute a function such as .toUpperCase()
-
Objects are values which store a collection of properties. Creating objects allows for you to create arrays with values that contain many properties which are assigned to it.
-
Objects allow for you to store many properties within a value.
-
Objects can be defined with the = operator followed by brackets which contain the assigned properties.
-
Javascript objects are able to change the value of other objects through bindings. By binding object1 and object2, you can change the value of object1 which then changes the value of obect2.
SECOND PART -
String variables arenât necessarily objects, therefore you cannot add variables to them. However, string variables do come with built in properties.
-
Rest parameters are used to pass all the values within an array on through a function as separate arguments. Essentially, you can yield the values of an array separately.
4.Serialization is the process of converting data into a flat description. This allows for data to be sent to another computer easily.
-
JSON(JavaScript Object Notation) is popular data serialization format that is used for data storage and as a communications format.
-
The difference is that only simple comments are allowed in JSON. No computation is allowed to be stored with json. All property names must be surrounded by double quotes.