Some significant differences and learning tips between JavaScript and C++

Before learning JS to do Vue, Node.js front-end and back-end, recently started to re-learn C++, obviously the difference between the two is huge

Main points to note:

  • The grammatical structure of C++ (while, for)

  • There is no data type in JS, and the data type of C++ needs to be learned (such as DWORD, etc.)

  • Object-oriented, JavaScript objects are very different from objects in C++

Tips for effectively learning C++:

  • Practice functions, pointers

  • Re-learn classes, objects, inheritance

  • Participate in C++ project development

  • Ask the community, find documents, find teachers

Guess you like

Origin blog.csdn.net/Littlelumos/article/details/129002460