mengirena / Practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Practice

OOP practice - Stop watch

02/06/2021 Initializing git

02/07/2021 Create property, Build start method

Challenge01 - 02/14/21

Challenge02 - 02/15/21

  • Returning function with an unassigned parameter can be held until the parameter is assigned.

Challenge03 - 02/16/21

  • slice(startIndex, endIndex) array method can be used to copy and pasted wanted elements to a new array.

Challenge04 - 02/17/21

  • Need to return the accumulated result while using the reduce() array method.

Challenge05 - 02/18/21, 02/19/21

for (let i=0; i<n; i++){
 //code
}
  • If the variable n used in the for loop is changed in the loop, it will affect when the loop will end.

Challenge 06

👍

Challenge 07

👍

Challenge 08

  • 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

Tic-Toc-Toe project - 02/25/21

  • 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)}

Challenge 09

About


Languages

Language:JavaScript 71.1%Language:HTML 18.1%Language:CSS 9.3%Language:EJS 1.5%