Javascript note
Array
Index
Length
Assign value
push method
unshift method
pop method
shift method
splice method
1
splice(<start index>,<how many items want to be removed>)
Object
read value from object
another method
1 | <object_name>['attribute_name'] |
or
Note
in this case can only use the 2nd method
assign value
modify value
delete value
object in array
read value
1 | <array_name>[index].<object_attribute_name> |