Thursday, February 16, 2017

Javascript vs Clipper/Harbour vs Delphi (Object Pascal)

After deciding to program for nodejs, I started to learn Javascript from scratch and discovered that there are striking similarities with Clipper/Harbour and a bit with Delphi

Similarities

Comments
Javascript, Clipper/Harbour and Delphi supports comments after:

//

/*  */

Differences

Case Sensitivity
Clipper/Harbour, Delphi 
 - case insensitive\

Javascript
- case sensitive, lower case


Variable Typing :
Clipper/Harbour
- strongly typed

Javascript 
- Weakly typed

End of Statement
Javascript
- semi-colon marks end of atatement

Clipper/Harbour -
 No need


FUNCTION Structure

Clipper/Harbour :

FUNCTION  <name> (var1)

RETURN

Javascript :

function <name> (var1 {

return var1 ;
}



More to come...


No comments:

Post a Comment