00:06:57 Zac Gordon: https://javascriptforwp.com/courses/javascript/sections/project-vanillapress-v1/lesson/reverse-engineering-vanillapress-v0-1/ 00:09:34 michaelbui: I thought it was very nice to see the helper, model, router, view, app architecture. 00:09:51 jamesryan: Agreed Michael! 00:10:00 Brezo: +! 00:10:02 Brezo: +1 00:10:03 michaelbui: Breaking it all out separately was able to visualize 00:10:28 michaelbui: i practiced with the model and the fetch 00:11:58 michaelbui: This is what I did: 00:11:59 michaelbui: model.fetchJson = function(){ fetch( "http://jsforwp-api.localhost/wp-json/wp/v2/posts/") .then( response => { if(response.status !== 200){ return; } response.json().then(posts =>{ //console.log(posts); localStorage.setItem("buiPress", JSON.stringify( posts ) ); }); }) .catch(); }; 00:12:28 Zac Gordon: https://javascript.info/async-await 00:13:11 michaelbui: Yes, thanks for sharing your code on that @fabian 00:19:58 Zac Gordon: 1. Name a few data types in JavaScript 00:20:41 Zac Gordon: 2. Write an object with a property and method 00:20:53 Zac Gordon: var myObject = ZZZ; 00:22:31 jamesryan: Zac I just lost my connection. What question are we on now? Still data types? 00:22:50 Fabian Kägy: @James 2. Write an object with a property and method
var myObject = ZZZ; 00:23:07 Zac Gordon: 3. Why is knowing the different types of DOM Nodes in JavaScript important? ie Element Node vs Text Node 00:24:24 Zac Gordon: 4. What is a helpful DOM API method for adding elements to a page 00:25:03 Zac Gordon: 5. What does Zac mean when he say, is this Vanilla JavaScript or something else? 00:26:02 Zac Gordon: 6. Name two web APIs that let us make HTTP requests with JavaScript 00:26:38 Zac Gordon: 7. Something you have learned about JavaScript you didn't know before the Bootcamp 00:28:34 Brezo: var myObject = { myProperty : 'This is a String', myMethod : function (myArg){ console.log( 'This is a method' ); } } 00:28:55 Brezo: myObject.myMethod(‘Hi’); 00:32:58 Zac Gordon: 6. Name two web APIs that let us make HTTP requests with JavaScript 00:33:19 Zac Gordon: fetch 00:33:25 Zac Gordon: XMLHttpRequest 00:35:33 michaelbui: if we remove an element must removeEventListener - ghost code! localStorage getItem setItem - WOW so useful! window.location.hash - mind blown window.addEventListener('hashchange', functionName, false); 00:36:00 Zac Gordon: Good one’s Michael, we’ll talk about these too :) 00:36:03 michaelbui: 3 things didn’t know about JS before bootcamp 00:37:35 michaelbui: *AGREED 00:51:23 Zac Gordon: https://learngitbranching.js.org/ 00:52:43 anja deubzer: I just found this today: 00:52:45 anja deubzer: https://github.com/ahmadawais/hacktoberfest