Category: js
How can you ensure accessibility when altering the DOM with JavaScript?
Ensuring accessibility when altering the DOM with JavaScript involves several best practices. Here are some key strategies to maintain or enhance accessibility: By following these…
Next generation coding
“Next-generation coding” is a broad term that can refer to several emerging trends and technologies in the field of software development. Here are a few…
JS Array Functions
Not really next-gen JavaScript, but also important: JavaScript array functions like map() , filter() , reduce() etc. You’ll see me use them quite a bit since a lot of React concepts rely…
Next-Gen JavaScript
let & const Read more about let : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let Read more about const : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const let and const basically, replace var . You use let instead of var and const instead of var if you plan on never re-assigning…
ES6 class declaration
ES6 class declaration ES6 introduced a new syntax for declaring a class as shown in this example👆 This Person class behaves like the Person type…
Understanding javascript numbers
JavaScript has only one type of number. Numbers can be written with or without decimals. *Adding Numbers and Strings WARNING !!JavaScript uses the + operator…
What Is The Fastest Way To Load JavaScript
There are a few things you can do: Load the HTML and CSS before the javascript. This gives the browser everything it needs to layout…
What are service workers?
Service workers allow developers to manage resource caching more efficiently so that users don’t experience interruptions even if they disconnect from the internet. This guide…
Web Workers
Javascript is single-threaded and multiple scripts can not execute at the same time. So if we execute any heavy computation task, then sometimes our page…