So what can it really do?
- Store useful values inside variables.
- Operations on pieces of text (known as “strings” in programming).
- Running code in response to certain events occurring on a web page.
- And much more!
APIs are ready-made sets of code building blocks that allow a developer to implement programs that would otherwise be hard or impossible to implement.
They generally fall into two categories.
Browser APIs are built into your web browser, and are able to expose data from the surrounding computer environment, or do useful complex things. For example:
DOM (Document Object Model) APIallows you to manipulate HTML and CSS, creating, removing, and changing HTML, dynamically applying new styles to your page, etc. Every time you see a popup window appear on a page, or some new content displayed (as we saw above in our simple demo) for example, that's the DOM in action.
Geolocation APIretrieves geographical information. This is how Google Maps is able to find your location and plot it on a map.
Third-party APIs are not built into the browser by default, and you generally have to grab their code and information from somewhere on the Web. For example:
- The Twitter API allows you to do things like displaying your latest tweets on your website.
- The Google Maps API and OpenStreetMap API allow you to embed custom maps into your website, and other such functionality.
When you’re first getting started with programming, your ears start to perk up at new words. You start catching familiar terms in a sea of foreign phrases. When you come across words that you’ve heard before, you may start making associations: object and object-oriented, function and functional, variable and constant, etc.
They are Different in Significant Ways
To decrease the time users spent waiting, Netflix has removed the Java server-based renderer and reduced the amount of HTML sent down the wire.
How Netflix did product transformation using Node.js?
Netflix is the best example that leveraged the benefit of Node.js by implementing it for production and they achieved tremendous result-economically and in performance.
Netflix is one of the world’s largest online media streaming providers delivering almost 7 billion hours of videos to nearly 50 million customers in 60 countries per quarter.
The primary reasons of Netflix to move to Node.js
- Have a common language for both server-side and browser side.
- Performance that Node.js offers. From a 40 minute + startup time they went to under a minute
- Node has a lot of modules that are mostly open source.
- To build the single-page application.
Thank You All!