Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
#define print(s) std::cout << s << std::endl;
using String = std::string; // typedef std::string String; // I don't want to using namespace std - I only want to cherry-pick this one definition.
class Car {
public:
String brand;
String model;
int year;
Topic Python both JavaScript
comments #
""" """
//
/* */
declaration my_var = 5 var myVar = 5
let myVar = 5
const myVar = 5
operators // +
-
*
**
/
%
assignment =
+=
-=
*=
**=
/=
%=
deletion del(my_var) delete(myVar)
increment
decrement
++
--
equivalence is ==``!= ===``!==