What are the unique features of Javascript ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What are the unique features of Javascript ?

for example every variable declaration starts with var VariableName It doesn't matter whether its a integer , string , float etc... What are such unique features of Javascript or are such examples found in other languages too. ? Answer please..

27th Aug 2017, 2:36 PM
Kalo 'smi
Kalo 'smi - avatar
5 Answers
+ 4
this is a simple example for you. https://code.sololearn.com/WWEXY300jnp0/?ref=app
28th Aug 2017, 8:13 AM
Amethyst Animion
Amethyst Animion - avatar
+ 5
if.. else.. statement try.. catch.. do.. while.. loop while.. loop
27th Aug 2017, 2:42 PM
Amethyst Animion
Amethyst Animion - avatar
+ 5
@Chinmay Moghe try... catch... is a block code where it will check a block of code inside try{.....} , when the code inside try{....} is error, catch(Exception e){....} will work to show a code inside it. example: try { alert("abcd" ++ "qwerty"); } catch(Exception e) { alert("error"); } this code made to prevent an error in console.
28th Aug 2017, 7:58 AM
Amethyst Animion
Amethyst Animion - avatar
+ 3
if else , while loop are not unique to javascript. what is try ..catch ? I dunno .
27th Aug 2017, 2:44 PM
Kalo 'smi
Kalo 'smi - avatar
+ 3
JavaScript is a prototype-based language.
27th Aug 2017, 4:13 PM
A_Hook
A_Hook - avatar