Weekly Blogs

Link to My Files Week 1 – Connecting HTML & JavaScript JS files can be attached to HTML files by using the script tag to insert the JS into the body of the HTML document. Crome Console Vs Coding with files Coding using Chrome or a browser console is only useful if testing, after refreshing […]

Week 7 Blog Post

Blogging Questions Describe what the two arguments of the addEventListener method are and how they work. Give four examples of the first argument and give examples of using an anonymous function vs. a declared function for the second argument. Use the code-insert tool for your examples. The first argument is what the event listener is […]

Week 6 Blog Post

Blog Question Describe how the querySelector() and querySelectorAll() methods work. What is the difference between the values returned for each method? Use an example code snippet to support your answer; include sample HTML and JS selectors. querySelector() is taking the CSS Style selector and It returns the first element that matches a given CSS Style Selector. […]

Week 4 Blog Post

Blog Question With the array methods pop() / push() and shift() / unshift(), explain the difference between the returned value of each method and the resulting value of the array? Use an example piece of code with the Enlighter tool to support your description. Pop() removes an element from the end of an array, making […]

Week[1-7] Blogs.

Week 1: Describe how you connect an HTML file and a JS file. You can connect an HTML and JS file with a script tag along with the source.Included inside the HTML file. <script src=”file-name-example.js”></script> Describe the difference between writing code in the Chrome console and writing HTML/JS files that are then open in Chrome. […]