Keyword dictionary · 5 languages

The same word in every language

What do you call "print", "variable" or "function" in each language? This table lines up INK, Python, PHP, C# (.NET) and Node.js word for word, so you can read any of them once you know one.

The INK column is highlighted. A greyed word means that language kept the same familiar term. On a phone, scroll the table sideways — the idea stays fixed on the left.

What it does INK Python PHP C# / .NET Node.js (JS)
Showing output
Print to the screenshowprint()echoConsole.WriteLine()console.log()
Variables & constants
Make a variablelet x = 5x = 5$x = 5;var x = 5;let x = 5;
A value that never changesconstX = 5 (UPPER_CASE)const / define()constconst
Types of value
A whole numbernumintintintnumber
Words / letters (text)textstrstringstringstring
Yes / no (true & false)true / falseTrue / Falsetrue / falsetrue / falsetrue / false
Functions
Define a functionfndeffunctionint Name()function
Send an answer backreturnreturnreturnreturnreturn
"Gives back" (return type)->-> (hint): typetype (before name)— (TypeScript :)
Making decisions
Do it only when trueififififif
Otherwiseelseelseelseelseelse
Another conditionelse ifelifelseifelse ifelse if
Is equal / not equal== / !=== / !=== / !=== / !==== / !==
Loops (repeating)
Count through a rangefor i in 0..5for i in range(5)for ($i=0; …)for (int i=0; …)for (let i=0; …)
Go through every item(walk by index)for x in xsforeachforeachfor…of
Repeat while truewhilewhilewhilewhilewhile
Repeat foreverloopwhile Truewhile (true)while (true)while (true)
Stop the loop / skip a turnbreak / continuebreak / continuebreak / continuebreak / continuebreak / continue
Collections
A list of things, in orderlist [ ]list [ ]array [ ]int[] / List<T>Array [ ]
Look up a value by name (map){ }dict { }[ "k" => v ]Dictionary<K,V>{ } / Map
How many itemslen()len()count().Length / .Count.length
Built-in helpers
Add up a listsum()sum()array_sum().Sum().reduce()
Largest / smallestmax() / min()max() / min()max() / min()Math.Max() / Math.Min()Math.max() / Math.min()
Read a number typed by the userinput()int(input())(int) readline()int.Parse(Console.ReadLine())Number( … )
Read a line of textinput_text()input()readline()Console.ReadLine()readline module
Read a fileread_file()open().read()file_get_contents()File.ReadAllText()fs.readFileSync()
Save a filewrite_file()open().write()file_put_contents()File.WriteAllText()fs.writeFileSync()
Symbols & structure
Add, subtract, multiply, divide+ - * /+ - * /+ - * /+ - * /+ - * /
Join text together++. (dot)++
A block of code{ }: + indent{ }{ }{ }
End of a statement(none)(none);;; (optional)
A note to yourself (comment)(not yet)#//////

Reading the table: most of INK's words are the same ones the older languages use (if, for, while, return) — that is on purpose. The highlighted differences (show, let, num, text, fn, loop) are where INK chose the plainer word.

See these words in real programs

The code page shows the same 22 programs written in all five languages, side by side.