Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
Python
JavaScript
Java
C++
favAnimal = 'turtles' print('I like ' + favAnimal) #Python
const favAnimal = 'turtles'; console.log('I like ' + favAnimal); //JavaScript
public class Main { public static void main(String[] args) { String favAnimal = "turtles"; System.out.println("I like " + favAnimal); } } //Java
#include
#include
using namespace std; int main() { string favAnimal = "turtles"; cout << "I like " + favAnimal; return 0; } //C++
Python result:
JavaScript result:
Java result:
CPP result:
I like turtles
I like turtles
I like turtles
I like turtles