Semantic Code
Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Semantic Code, Education, Beni Suef.
01/02/2021
The getComputedStyle() method returns an object containing the values of all CSS properties of an element, after applying active stylesheets and resolving any basic computation those values may contain.
________________________________________________________________
الداله getComputedStyle هي داله تابعه لل window object وتاخذ منا argument وهو عباره عن عنصر html يوجد بالصفحه ومن ثم ترجع لنا الداله مصفوفه بها كل خصائص ال css الخاصه بهذا العنصر. كما هو موضح بالمثال في الاسفل.
References:
https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
https://www.w3schools.com/jsref/jsref_getcomputedstyle.asp
01/02/2021
"higher-order functions in Javascript''
Higher-order functions are functions that receive other functions as arguments or return functions as their results. They are extensively used in JavaScript like in .filter(), .map(), .reduce() or .forEach() functions.
هذا المفهوم بكل بساطه هو انه يوجد لدينا Function تقبل منا function اخري ك argument فتسمي ال function الاولي ب higher order function كما هو موضح في المثال التالي :
const myArray = [1,2,3,4];
const myMultiplyFuncion = n => n*2;
newArray = myArray.map(myMultiplyFuncion);
console.log(newArray);
//[2, 4, 6, 8]
في المثال السابق ال higher-order function هي ال map.
وفي الكومنتات صور توضح هذا المفهوم.
11/01/2021
Developer life
Click here to claim your Sponsored Listing.
Category
Contact the school
Telephone
Website
Address
Beni Suef