Please enable JavaScript.
Coggle requires JavaScript to display documents.
Java script notebook, Object and can nest sub-object and have method that…
Java script notebook
Chap 3: OBJECTs
-
Define an object
-
var myObj={ 'varOne':'One',
'methodOne':function(){ alert('methodOne has been called!')}
}
const object_name = {name:"var", lidOpen:false, strapLength: {y-axis:12, x-axis:30}, lidOpenState: function(lidState) {}, }
-
-
CLASS: object blueprints
-
-
-
Class define structure
class Name {
constructor()
{this.a=a;} // prototype method
other methods (can not use arrow functions here) }
-
-
-
-
Chap 1
JS landscape
-
ECMAscript = browser, how the language should be interpreted by browser
-
-
Build tool (npm, WebPack, gulp)
-
-
-
-
-
Chap 2
Modern JS import
-
-
Async and Defer
-
Defer
-
When HTML is complete, execute whatever JS fies
-
-
-
-
-