Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript - C++

Status
Not open for further replies.

Jonnn

Programmer
Nov 17, 2004
135
GB
I have been learning C++ for a week now, everything im learning seems to be similar to JScript ... but just uses diff key words. To be honest lots of languages seem similar to JScript (coding wise). What do you guys think?

- Jon

JavaScript Beginner at work :)
 
Or maybe it's the other way around? C++ was around long before Java and Javascript, and its forerunner, C, has been around longer than a lot of the people posting on Tek-Tips. A lot of computer languages are based on C/C++ in some form or another, just like a number are based on Pascal.

Lee
 
thats what i meant, i guess once you learn c++, the rest learns a treat ?

JavaScript Beginner at work :)
 
No, each language has its own idiosyncracies and special features. The concept of object-oriented programming is similar, case sensitivity in function and variable names is the same, and some of the syntax and punctuation is similar. I learned C++ long before I started Javascript, and it's compeletely different animal entirely.

Lee
 
There ARE a lot of differencies (or, as trollacious said, idiosyncracies). For example, C does not even HAVE a concatenation operator for strings, that requires a function call. PERL use the period as it's string concatenation operator. Javascript uses the plus sign. For historical reasons, VB can use the plus sign in many situations, but that can also cause unexpected errors to pop up - VB's official string concat operator is the ampersand.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top