Use const or let to declare variables in JavaScript.
function greet(name) {
return `Hello, ${name}!`;
}
console.log(greet('World'));interface User {
id: number;
name: string;
email: string;
}
const createUser = (data: User): User => {
return { ...data };
};def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
print(fibonacci(10))package main
import "fmt"
func main() {
message := "Hello, Go!"
fmt.Println(message)
}public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}#include <iostream>
int main() {
std::cout << "Hello, C++!" << std::endl;
return 0;
}#include <stdio.h>
int main() {
printf("Hello, C!\n");
return 0;
}version: '3.8'
services:
web:
image: nginx:latest
ports:
- "80:80"
environment:
- NODE_ENV=productionx = linspace(0, 2*pi, 100);
y = sin(x);
plot(x, y);
title('Sine Wave');
xlabel('x');
ylabel('sin(x)');fn main() {
let message = "Hello, Rust!";
println!("{}", message);
}SELECT users.name, orders.total
FROM users
INNER JOIN orders ON users.id = orders.user_id
WHERE orders.total > 100
ORDER BY orders.total DESC;{
"name": "upayan.dev",
"version": "5.0.0",
"dependencies": {
"react": "^19.0.0",
"next": "^15.0.0"
}
}