First part:
-
What problems does this chapter introduce that cannot be solved with variable types such as strings or integers?
We need data structures to store multiple values. -
What variable type can be used in order to solve the problem of storing multiple values?
Arrays or objects. -
What are properties in Javascript?
They are the values associated with a JavaScript object. -
Which values do not have properties?
Null and undefined. -
How can we access properties in a value (two ways)?
With a dot or square brackets (value.x or value[x]) -
What are methods?
Properties that hold function values. -
What are objects?
Arbitrary collections of properties. -
What problem do objects solve that cannot be solved with other value types weâve learned so far (such as integer, string, array, boolean etc)?
They can store different types of values. -
How do you define an object?
Using braces as an expression. -
What can you say about the mutability of Javascript objects?
You can modify values inside an object.
Second part:
-
Why canât you add new properties to a string variable?
Strings are immutable. -
What are rest parameters?
They allow us to represent any number of arguments as an array. -
What is serialisation and what is a use case of serialisation of data?
Data is converted in to a flat description. -
What is JSON?
JavaScript Object Notation. It is used as data storage and communication format on the Web. -
What are the differences between JSON and the way programmers write objects in plain Javascript?
All property names have to be surrounded by double quotes and only simple data expressions are allowed.
No function calls, bindings or anything that involves actual computation. Also comments are not allowed in JSON.