Front end darsliklari moduli html, css, javascript


JAVASCRIPT – Advanced Functions


Download 105.45 Kb.
bet11/12
Sana15.02.2023
Hajmi105.45 Kb.
#1200512
1   ...   4   5   6   7   8   9   10   11   12
Bog'liq
FRONT END full notes (7) (2022 05 08 17 42 47 UTC)

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
--------------------------------------------------------------------------------------------------



  1. Download 105.45 Kb.

    Do'stlaringiz bilan baham:
1   ...   4   5   6   7   8   9   10   11   12




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling