Question:
Script failed to load when testing in browser.
Solution:
Used console, saw the name of the javascript file didn’t match the name in the script tag. For each version of TTT, must change the js reference name in HTML file.
Question:
Two classes for one element in JavaScript?
Solution:
Question:
“Undefined” displaying in stopwatch countdown, instead of minutes/seconds
Solution:
Let variables don’t need “this” when being used within their scope.
Question:
How to prevent default action of an anchor tag?
Solution:
Question:
How to delete a task from the list?(object from array?)
Solution:
Question:
How to add style to parent element?
Solution:
https://www.w3schools.com/jsref/prop_node_parentelement.asp
Question:
How to get input from text box?
Solution:
Use value, not innerText or innerHtml.
Question:
How to get coordinates of a mouse pointer?
Solution:
https://www.w3schools.com/jsref/event_clientx.asp
Question:
How to divide canvas image into tiles?
Solution:
Question:
How do you get the x and y coordinates for drawImage()?
Solution:
Question:
How do you get the location of the tile in the tileClick method (when the user clicks on a tile to move it)?
Solution:
Question:
How to get the weather description and icon?
Solution:
Question:
How to add event handler to all the days, so that more details are displayed when clicked on?
Solution: