11. JAVASCRIPT – Advanced Functions
• setTimeOut // clearTimeout()
• Callback
• Async/await
• Promise
• Try, catch, throw, finally
let myPromise = new Promise(function(myResolve, myReject) {
myResolve();
myReject();
});
myPromise.then(
function(value) { },
function(error) { }
);
Await Promise.all([ ])
Fetch / axios
https://jsonplaceholder.typicode.com/
12. JAVASCRIPT – Advanced Functions - Review
13. DOM(Document Object Model)
⁃ GETELEMENT
⁃ QUERYSELECTOR
document.querySelectorAll, document.querySelector
parentNode, childNode, nextSibling, previousSibling
⁃ CREATING
document.createElement('li')
document.createElement('li')
⁃ EVENTS
click
dblclick
mousedown =>
mouseup =>
The mouseDown() function is triggered when the mouse button is pressed down over. The mouseUp() function is triggered when the mouse button is released
mouseenter => only parent container
mouseover => any inner element too
mouseleave => only parent container
mouseout => any inner element too
mousemove => ex: get mouse position => rgb change ex
keydown == keypress => onchange()
keyup => press and hold any letter and take it out
focus => input focus
blur => input blur
Execute a JavaScript when a user leaves an input field
--------------------------------------------------------------------------------------------------
REACT
--------------------------------------------------------------------------------------------------
Do'stlaringiz bilan baham: |