JavaScript commands


A command in JavaScript is like a sentence in English. In both English and in JavaScript, verbs are required, though nouns are not always.
English: Jump "you" is understood
JavaScript: alert( ) no message

In English, verbs are often indicated through the infinitive form "to jump." However, in most languages there are irregular verbs.

Language Infinitive Mark Infinitive form
English (regular): to to jump
JavaScript: () alert( )
French -er patouill-er
French irregular-reetre
Spanish -ar pens-ar
Italian -are
scivo-lare
Russian -ить
говор-ить

Some verbs in English and in JavaScript are transitive, meaning they usually require a direct object. Others are intransitive, meaning that no direct object is expected. Others can be either transitive or intrasitive.

type of verb English JavaScript
strictly transitive hold
I hold the key
=
a=b
intrasitive sleep
We slept.
*We slept the dog.
alert
alert( ) in Firefox
either I jumped.
I jumped the hurdle.
alert('hello' )
alert( ) in IE

While most verbs in JavaScript use parenthesis, and while most verbs in most languages are regular verbs, the "to be" verbs in many languages are irregular.
Language Infinitive form partial
conjugation
If it were regular
*
English: to be am, are, is, was, were I be; you be; I beed
JavaScript: =
a=b
=(a,b)
French etresuis, es, êtes, sommes, été, serai
J'ets, tu ets, vous etez, nous etons,
J'ai etu, j'etrai
Spanish ser* soy, eres, es, somosyo so, tu ses,  usted se, nosotros semos
Russian Быть**
буду, будешь, будет, будем
бю?, бышь?
* ser is contrasted in Spanish with estar (a less permanent form of ser)
** Быть is not used often to associate subjects with predicate nominatives or predicate nominatives in Russian as it is in English and many other European languages. Rather the verb is usually left out in sentences like "I am a sailor"