Can’t read properly syntax error usually means whatever you are calling is undefined (could be a typo)
If a variable is defined within a blocked function, the variable is ONLY defined inside that function. If you try to call the variable outside of that specific function, it will break the code
If you have “return” on its own line, the returned results will be undefined
Notes for weekend project:
Use personal or a burner g-drive
Create new google form (input all info and design asthetic)
Note that grid type questions will not interact with our website too well at this point
Go to file tab and publish to the web (.csv) and grab url
Create folder on desktop and use touch to create files within the folder (html, css, java, etc.)
CSS:
if using left, right, top, bottom - must use display: absolute or fixed (not relative)
JavaScript:
measure the dimension of the webpage window with window.innerHeight and window.innerWidth
for forms we can use form. to select specific parts of the form (for example: form.input.value)
if an array is being called, ensure to specify which string in the array (i.e. in today's Jeopardy activity, the API had an array but only one string within, so we had to use data[0] to fetch it. Numbering of arrays starts at 0, and goes up by increments of 1)
Tips and Things to Check For While Debugging:
Notes for weekend project:
CSS:
JavaScript: