+ 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..
5 Respostas
+ 4
this is a simple example for you.
https://code.sololearn.com/WWEXY300jnp0/?ref=app
+ 5
if.. else.. statement
try.. catch..
do.. while.. loop
while.. loop
+ 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.
+ 3
if else , while loop are not unique to javascript.
what is try ..catch ? I dunno .
+ 3
JavaScript is a prototype-based language.