What you will learn in this article:
- What are Web Browser APIs?
- split() - Turns a string to an Array.
- splice() - Splicing strings by index.
- reverse() - Reverse an array.
- join() - Convert an array to string.
- toLowerCase() - Converts strings to lowercase.
- toUpperCase() - Converts strings to Uppercase.
- forEach() - Function to loop through arrays.
- indexOf() - Finds the index of any data passed into it.
- map() - Function that loops through an array and produces a new array from the old one.
- filter() - Function used to filter through an array.
What is Web Browser APIs?
Before we dive into this, we need to understand what an API means in programming.
"Application Programming Interfaces (APIs) are constructs made available in programming languages to allow developers to create complex functionality more easily. They abstract more complex code away from you, providing some easier syntax to use in its place." -- The MDN
Be aware that there are two types of APIs in the Browser which are; Browser API and Third-party APIs, but this article is about the Browser API. Read more about APIs Here
So what is Web Browser APIs?
For example, the DOM API commonly used by Frontend Developers provides construct for creating HTML elements, deleting HTML elements, adding and removing classes on HTML elements, adding new HTML elements to the DOM, listening to events on HTML elements, and generally manipulating elements on the DOM tree of a browser. Beneath this API, your browser is using some low-level language to make this happen. But then, this is the abstraction the API does for you and the browser provides this API for you to use.
5 examples of Browser APIs
- DOM API
- Web Audio API
- Canvas API
- History API
- Touch Event API
Language of the Browser
John is human in an environment with food, fresh air, good clothes. Our focus is on those three for now:
- Fresh air( Oxygen): John is also not born with Fresh air in his lungs rather the ability to breathe the air the environment provides
- Good Clothes: John is not born with clothing on his body but rather has a body that needs to be clothed. This can also be applied to housing too.
- setTimeout(): I see no reason a programming language needs a timer to do anything but building an app you would need one in the browser, so there goes the browser to the rescue.
- setInterval(): Same with the setTimeout.
- What are Web APIs
- List Of Web Browser APIs
- List of Web Browser APIs in Object ( Object Interfaces)
The resources above are provided that you may look further into these topics and arm yourself with more knowledge on this subject matter!
Wow!! We are at the very end of this article, hope you learnt a lot because I can't imagine how much you know after this article and that is what this blog is existing in the first place.
If you did learn something please like, share, comment, just do anything to make it go viral.
I would be posting more articles, so be sure to follow me to get notified when I post them.