Please enable JavaScript.
Coggle requires JavaScript to display documents.
HTML + CSS + JS (SASS (Mixin (Group of CSS declarations that cat be reused…
HTML + CSS + JS
SASS
Variable defined
$main-fonts: Arial, sans-serif
$red-color: red
-
-
-
-
each to Map Over Itemsin a List
while to apply a style until a condition is met
-
extend: extend one set of CSS Styles to another element
-
responsive design
-
-
Media Queries
media only screen and (max-width: 480px){}
JS
OOP
-
-
-
-
-
private property
Create a variable within constructor function and public getter method so object can access proper by this
ES6
var vs let
User var, we can overwrite variable declarations without an error
-
Scopes
- Var: only globally or function
let: limit inside block, statement or expressions
-
Functions
- Use Arrow Functions to write Concise Anonymous Functions
-
-
Operator
-
Destructuring Assignment: to extract values from Objects or Nested Objects, Arrays
const{name,age} = user with user = {name:'a','age':1}
-
-
Module
make JS more modular, clean and maintainable
-
Use export to share code block: {{ add, substract }}
-
-
-
-
-
-
-
-