Lab 22 Reflection

     Lab 22 was about using developer tools in the console of the browser. These were mainly methods that are attached to console in the JS and do certain things, starting with the ubiquitous console.log that logs a certain message into the console. The .warn() and .error() methods output a warning and error message, respectively, distinguishable via appearance. The .dir() method logs all the properties if an object or element in DOM, .count() logs the number of times the method has been refered to with the same parameter, and .time() logs how much time it took to retrieve the last piece of info retrieved. Lastly, .clear rids the console of any messages that were there previously.
     These skills are important for a web designer because they can be used in various ways to troubleshoot a website. For example, .warn and .error can be used to debug certain functions that aren't working, tying a certain message to these methods when a particular problem occurs. .dir() could be useful in seeing how the properties of an object change after a certain interaction, seeing if what you wanted to change has changed. One can really be creative with how they use these methods and "dominate" their website.

Comments

Popular Posts