View on GitHub

reading-notes

CodeFellows Class Reading Notes

JavaScript Ch. 7 - jQuery

jQuery: a JavaScript file that you include in your web pages which allows you to find elements using CSS-style selectors and then use jQuery methods

jQuery Object is created using the jQuery function $(‘element selector’).methodCalled

Benefits of using jQuery:

When you select one or more elements, a jQuery object is returned (aka matched set or jquery selection). Each element within that object is assigned an index number

implicit iteration: the ability to update all of the elements in the jQuery selection

chaining: the process of placing several methods in the same selector

.ready() method: checks if the browser supports the DOMContentLoaded event

Common Tasks with jQuery

.each() method allows one to loop through each element in a selection

.on() method is used to handle events


6 Reasons for Pair Programming

Pair Programming: the practice of two developers sharing a single workstation to interactively tackle a coding task together

Driver: the programmer who is typing (the only one whose hands are on the keyboard)

Navigator: the programmer who uses their words to guide the Driver but does not provide any direct input to the computer

Pair Programming allows developers to practice four fundamental language skills:

Benefits of Pair Programming:

  1. Greater Efficiency
  2. Engaged Collaboration
  3. Learning from Fellow Students
  4. Social Skills
  5. Job Interview Readiness
  6. Work Environment Readiness

Home