- Single Threaded
- Non-blocking IO
- Asynchronous
- Dynamically typed
- Multi paradigm
- Event driven
What is Asynchronous ?
Asynchronous means java scripts executing the code without waiting for the completion of the before task.
ex:-
if you do lot of synchronous programming.you think this code outputs
first
(wait for 1 second)second
third
but java script is asynchronous language.it outputs
first
third
second
it doesn't wait 1 second, until completes the process to output "third".
what is Non-Blocking IO ?
that means code doesn't block the execution.not wait for IO operations to get completed.Instead it continues the execution of the program. Benefit of it is can maximize the usage of memory and single CPU.
what is Dynamically typed?
no need to specify the type of the variable.Java script have types.but no need to mention them.
var a="hello";(String)
var b=10;(int)
var c=5.2;(float/double)
java executing java script engine check the value and decide what type is it and assign the type at back end.
what is multi-paradigm?
means it just not have one ideology.it has object oriented (prototype based),imperative,functional etc.. so can write the code preferred way.
what is event driven?
event driven programming is a programming paradigm in which the flow of the program is determined by events.
events ex :- mouse clicks,key presses,sensor outputs etc...
No comments:
Post a Comment