Reading-Notes

Class 06 Summary

Problems Domain:

Understanding Problem domain is the hardest part of programming

Hardest things in writing code:

  1. Learning new technology
  2. Naming things
  3. Testing our code
  4. Debugging
  5. Fixing bugs

To make Programming easy we should understand the problem domain ***********************************

Object In JavaScript:

What is object?

 a set of variables and functions to create a model of something from the real world.

Document Object Model(DOM):

Making The HTML Model and With the HTML DOM,JavaScript can access and change all the elements of an HTML document.

Img1

DOM queries return one element, or return a Nodelist, which is a collection of nodes.

Example: var myNodelist = document.querySelectorAll(“p”); var i; for (i = 0; i < myNodelist.length; i++) { myNodelist[i].style.color = “red”; }