rbi-learning / Today-I-Learned

1 stars 0 forks source link

Today I Learned (July 31st) #48

Open farhan310 opened 4 years ago

farhan310 commented 4 years ago

Today I learned:

• How to use the about .map syntax which allows us to return an array when presented a list of objects. We also learned that methods always take functions as an argument

document.querySelector("h2:nth-of-type(1) span[role='img']"); Using this function, I learned that nth-of-type() is for the entire document, not only for the same parent.

• Using the code *v const renderFormula = value =>

• Learned how to use arrays to replace any given instances in a string using replace./[]/g

• Additionally, also learned that traversing is another method, that is more dynamic than .querySelector and as a result can target elements that the user would like to search inside compared to searching the entire document

Furthermore, I also today that there are 3 levels of accessibility:

A- Basic needs AA- Standard practice to have implemented into your apps (RBI) AAA- User with accessibility needs can have the same experience as a user without.