Modern versions of C++ and JavaScript are very different languages, but they can be programmed in a similar styles.
- functions without classes
- class member functions
- The this pointer
- lambdas/arrow functions
- closures
- JS 1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript#closures
- C++ 1. https://leimao.github.io/blog/CPP-Closure/#:~:text=In%20C%2B%2B%2C%20lambda%20expression,that%20originated%20from%20functional%20programming.
- scope anywhere with {} blocks
- nested classes / structs
- destructuring ES6 & C++17 (but they call it different things)
- JS - destructuring assignment 1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
- C++ - structure binding declaration 1. https://en.cppreference.com/w/cpp/language/structured_binding
- range for loops
- initializing arrays with generated data
- IIFE - immediately invoke function expression
- web server code, express vs. Drogon (focus on the routes)