Q) What is Node Js and Features?
Node.js is an open source, cross-platform runtime environment for developing server-side
and networking applications
Asynchronous and Event Driven
Very Fast
Single Threaded but Highly Scalable
Q) Web Server Model.
The traditional web server model consists of a pool of threads which may process requests.
Each time a new request comes in, it is assigned to a different thread in the pool.
Q) Node Js Model.
Node.js runs in a single process with requests being processed on a single thread.
Q) Asynchronous and Synchronous Programming.
Synchronous tasks happen in order—you must complete the current task before moving on
to the next.
Asynchronous tasks are executed in any order or even at once.
Q) REPL
REPL stands for Read Evaluate Print Loop, it takes single expression as user input and
returns the result back to the console after execution.
Q) Event Emitter Node Js.
Event Emitter is a module that facilitates communication/interaction between objects in
Node.
Q) Timer API.
A timer is created to execute a task or any function at a particular time. E.g. SetTIMEOUT,
SetINTERVAL
Q) Schedule and Cancel Event in JavaScript.
Schedule: SetTIMEOUT, SetINTERVAL
Cancel: To cancel an event, call the preventDefault() method on the event.
Q) File System in Node Js.
Node.js file system module allows you to work with the file system on your computer. To
include the File System module, use the require() method
Q) Functions to read and write file.
getNameFiles
readNamesFromFiles
Q) HTTP Server
The http. createServer() method creates an HTTP Server object.
Q) Angular Js and Features
AngularJS is a structural framework for dynamic web applications.
• AngularJS is a efficient framework that can create Rich Internet Applications
(RIA).
• AngularJS provides developers an options to write client side applications usin
JavaScript in a clean Model View Controller (MVC) way.
• AngularJS are cross-browser compliant and open source
Q) MVC
MVC stands for Model View Controller. It is a software design pattern for developing web
applications. It is very popular because it isolates the application logic from the user interface
layer and supports separation of concerns
Q) Angular Js vs Angular
AngularJS is JavaScript-based while Angular is TypeScript based.
Q) ng directive in Angular Js
"ng" stands for Next Generation, as Angular is the next generation of HTML
ng-model directive binds the value of HTML controls (input, select, text-area) to application
data.
ng-app directive tells AngularJS that this is the root element of the AngularJS application.
ng-init Directive is used to initialize AngularJS Application data.
Q) Filters in Angular JS.
Filters can be added in AngularJS to format data to display on UI without changing the
original format.
Q) What is a controller in AngularJS?
AngularJS controllers are used to control the flow of data of AngularJS application. A
controller is defined using ng-controller directive.
Q) Scope in AngularJs
The scope is the binding part between the HTML (view) and the JavaScript (controller).
Q) SPA and Advantages
Single Page Applications are web applications that load a single HTML page and only a part
of the page instead of the entire page gets updated with every click of the mouse. The page
does not reload or transfer control to another page during the process. This ensures high
performance and loading pages faster.
Q) What is validation in AngularJS?
AngularJS monitors the state of the form and input fields (input, textarea, select), and lets you
notify the user about the current state
Q) Route Provider
routeProvider defines what page to display when a user clicks a link.