Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alias javascript keywords

Tags:

javascript

Can I alias JavaScript keywords? For example, can I set up a shorthand for function to be func:

func add(a, b){
    return a + b;
}

or a shortcut to delete:

del a;

like image 208
Randomblue Avatar asked Oct 18 '25 13:10

Randomblue


1 Answers

No you cannot. Naming keywords are something you don't have any control over.

like image 189
aepheus Avatar answered Oct 21 '25 02:10

aepheus