02/06/2021 Initializing git
02/07/2021 Create property, Build start method
- Returning function with an unassigned parameter can be held until the parameter is assigned.
slice(startIndex, endIndex)
array method can be used to copy and pasted wanted elements to a new array.
- Need to return the accumulated result while using the
reduce()
array method.
for (let i=0; i<n; i++){
//code
}
- If the variable
n
used in thefor
loop is changed in the loop, it will affect when the loop will end.
👍
👍
- Group the range in a list of list first and then use map to go through the list list of list with list length as a condition to filter the true range out
-
inline width collapses if there's no content
-
vertical-align affects inline only
-
can't call method in the event listenter because
this
would be the event. Instead, creating a function with two variables (the first one is the event and the second one is the object) would work.
function(e,obj=newBoard){obj.markChoice(e)}