#Object Oriented Javascript
#Overview
- Creating Objects in JavaScript
new Object();
- Object Literal Notation (Important)
- Factory Function
- Review JavaScript's
this
- More Creating Objects in JavaScript
- Constructor Function
Roadmap #5 | |
What is the difference between Test and Run the project? | |
#Object Oriented Javascript
#Overview
new Object();
this
$("a").click(function(e) { | |
e.preventDefault(); // prevent default action | |
$.ajax{ | |
url: $(this).attr("href"), | |
dataType | |
}).done(function(data) { // ajax call | |
}) | |
}) |
OOJS | |
CRUD | |
AJAX | |
prototype in js? | |
not expected to write test |
Handlebars | |
- Clinet side JS templating engine | |
- JS library included in the HTML page | |
- Allows adding templates to your HTML page | |
Reason to use a JS tempting engine | |
- fast, on clinet side | |
- easier to read with a lot of string interpolation. | |
When to use JS tempting engine |
###This is H3
def method(arg)
arg
end
For documentation, please read this link http://www.rubydoc.info/gems/twitter#Documentation
User location will be a null object if user didn't input location.
Data needed: followers followings