Skip to main content

Node JS core explained

First we go to the abstraction level, the deepest level,

Micro Processors are smallest portion of computers, which you can
use microprocessor speaks language. Not all microprocessor are
not speak the same language. So we need to have a common language,
or a standard for that. What happens is that this languages have
to be transated in to Machine Code. So what is Machine Code?

Machine Code is a computer programming language consisting of binary
or hexadecimal instructions which a computer can respond to
directly and also readable to them.



So there is a level of abstraction

   

So Javascript is a high end language, which programmers can use
easily.

So now why are we needing this?

The thing is that Node is written in C++, so do we need to learn
C++ as well, no actually you don't need to know C++  to use node,
but you need to know Javascript. V8 is written in C++, if you want
to do a modifictaioon , you can use V8's code and change
for your need. V8 is the engine which turns Javascript code in in
to machine code,which is amazing for browser based language. Isn't it?


Now lets's learn about ECMAScript, ECMAScript is the standard
that javascript based on.Javascript invented first but
then different browsers, companies tried their own versions.
But that makes complicated for developers. So what happened is that
then people have to agreed to have standard, So they have ECMAScript.
So what ever Javascript engine a company would use, to have this
specifications. What is Javascript engine? A program that converts
javascript code into something the computer processors can understand.


Comments

Popular posts from this blog

Creating fully functional page object model automation framework with Playwright in 1 hour

 We are back with another 1hour tutorial  😇 . This time we will be creating Playwright and Typescript page object model framework. For this we will be using Visual Studio Code editor. Hope you have a basic idea on Playwright. There are plenty of resources you can refer to get the basic idea of the Playwright. In this tutorial we will be focussing more on how to implement Page Object model in Playwright. So let's begin. Before all of this, you must need to have  node js  installed. I hope you have already done that. 1. Download the relevant nodejs packages by using following command  npm init playwright@latest 2. Lets create our project structure. Unlike Selenium 1 hour lesson for this we will be creating just two folders. To write page objects we use "pages" folder and to write tests we create "tests" folder. Just for now, run the default tests which Playwright automatically create with its installation. use  npx playwright test command in your CMD. By de...

How to create Push Notification System for your Cordova app with OneSignal and Firebase

H ello Everyone, today i'm going to show you how to add push notification system for your Cordova mobile app with OneSignal. First let's talk little bit about OneSignal. OneSignal is a multi-platform push notification service, which gives you variety of features. It lets you to send push notifications to almost all current mobile Operating Systems. You can check out their documentation if you want or start straightly this tutorial. If you need to see the project structure  and stuff  go to github repo Lets begin our tutorial 😎😎😎 First lets create a Cordova project. type following command in your CMD.    C:\Users\acer>cordova create push There will be a structure like this,      Now run android emulator, if you don't know how to run emulator from your CMD see this tutorial and do it exactly like that. Go to your project folder and then type the following command in your CMD  C:\Users\acer\push>cordova platfor...

How to deploy Android Emulator from CMD in Windows

First go to your C drive Then find Users folder and your Personal folder in my case acer Then go to .android folder Now first you have to check what are the available emulators first emulator -list-avds you will get some thing like this, if not you have to create emulator device first .  Now run following command by specifying which device you want. For me i will pick Nexus_5_API_24 emulator -avd Nexus_5_API_24 And your job is done.