Keywords
Declaration
Section titled “Declaration”| Keyword | JS Output | Description |
|---|---|---|
const | const | Constant declaration |
let | let | Variable declaration |
var | var | Var declaration (discouraged) |
be | = | Assignment |
Functions
Section titled “Functions”| Keyword | JS Output | Description |
|---|---|---|
fn | function | Function declaration/expression |
return | return | Return value |
to | => expr | Expression body |
to return | { return expr; } | Explicit return expression body |
gives | (erased) | Return type annotation |
async | async | Async function |
await | await | Await expression |
Conditional
Section titled “Conditional”| Keyword | JS Output | Description |
|---|---|---|
if | if | Conditional |
elif | else if | Else-if branch |
else | else | Else branch |
unless | if (!(...)) | Negated conditional |
then | (ternary/inline) | Inline conditional |
| Keyword | JS Output | Description |
|---|---|---|
while | while | While loop |
until | while (!(...)) | Negated while loop |
for | for | For loop |
in | of / in | Iterator |
range | (numeric range) | Range-based loop |
break | break | Break |
continue | continue | Continue |
Pattern Matching
Section titled “Pattern Matching”| Keyword | JS Output | Description |
|---|---|---|
switch | if-else chain | Switch expression |
case | (switch arm) | Switch case |
default | (switch default) | Default arm |
match | if-else chain | Match expression (deprecated) |
when | (match arm) | Match case (deprecated) |
Modules
Section titled “Modules”| Keyword | JS Output | Description |
|---|---|---|
import | import | ESM import |
from | from | Import source |
export | export | ESM export |
default | default | Default export |
require | require() | CJS require |
use | import | Dot-path import (deprecated) |
namespace | IIFE | Module namespace |
public | export | Public export |
all | * as | Namespace import |
with | with | Import attributes |
Operators
Section titled “Operators”Arithmetic
Section titled “Arithmetic”| Keyword | JS Output |
|---|---|
add | + |
sub | - |
mul | * |
div | / |
mod | % |
pow | ** |
neg | - (unary) |
Comparison
Section titled “Comparison”| Keyword | JS Output |
|---|---|
eq | === |
neq / not eq | !== |
lt | < |
gt | > |
le / lt eq | <= |
ge / gt eq | >= |
Logical
Section titled “Logical”| Keyword | JS Output |
|---|---|
and | && |
or | || |
not | ! |
Nullish Coalescing
Section titled “Nullish Coalescing”| Keyword | JS Output |
|---|---|
coal | ?? |
Pipeline
Section titled “Pipeline”| Keyword | JS Output |
|---|---|
pipe | b(a) |
Type Keywords
Section titled “Type Keywords”| Keyword | JS Output | Description |
|---|---|---|
is | === | Equality check (alias of eq) |
as | (erased) | Type cast |
of | (erased) | Type annotation |
typeof | typeof | Typeof operator |
instanceof | instanceof | Instance check |
type | (erased) | Type alias |
| Keyword | JS Output |
|---|---|
new | new |
delete | delete |
this | this |
super | super |
throw | throw |
try | try |
catch | catch |
finally | finally |
pipe | pipeline operator |
list | array literal |
object | object literal |
nan | NaN |
| Keyword | JS Output | Description |
|---|---|---|
class | class | Class declaration |
extends | extends | Class inheritance |
super | super | Parent class reference |
static | static | Static method |
private | #field | Private field declaration |
get | get | Getter accessor |
set | set | Setter accessor |
Punctuation
Section titled “Punctuation”| Symbol | Meaning |
|---|---|
[ ] | Brackets (calls, arrays, objects, grouping) |
. | Property access |
\. | Optional chaining (?.) |
\ | Computed access prefix (inside [...]) |
; | Argument / element separator |
, | Array / object separator |
.. | Inclusive range |
... | Exclusive range |