Welcome to Kobe. A Python-inspired (basically a black mamba) language that leverages the ease of JavaScript. Clean, efficient, readable code! Kobe Bryant easter eggs everywhere.
Kobe’s key features include:
- Static typing
- Loops
- Nesting
- Type inference
- Data structures such as arrays
JavaScript | Kobe |
---|---|
console.log("What’s up"); |
print("What’s up") |
JavaScript | Kobe |
---|---|
function add(a, b) {
return a + b
} |
num job add(num a, num b) {
output a add b
} |
JavaScript | Kobe |
---|---|
None |
reps(5) {
print("hello")
} |
JavaScript | Kobe |
---|---|
var championships = 100;
if (championships > 50) {
console.log("You are Kobe")
} |
num championships = 100
if (championships > 50) {
print("You are Kobe")
} |
JavaScript | Kobe |
---|---|
for (let i = 0; i < 10; i++) {
console.log(i);
} |
coil (num i, 0 to 9) {
print(i)
} |
JavaScript | Kobe |
---|---|
let x = 5;
while (x < 10) {
console.log(i);
x++;
} |
grindUntil(x < 10) {
print(x)
x++
} |
x add 6
adds 6 to the variable x.
x minus 6
subtracts 6 from the variable x.
x multiply 6
gets the product of 6 and x.
x divide 6
gets the quotient of 6 and x.
x mod 6
gets the remainder of x divided by 6.
x to the 6
raises x to the 6th power.
abs (x)
is the absolute value of x.
sqrt(x)
gets the square root of x.