8 - JavaScript Tutorial - JavaScript Conditions, If...Else Statements

preview_player
Показать описание
This tutorial will talk about adding conditions to the JavaScript code.


Visit the forum at:

Follow us on twitter:

Become a fan on Facebook:
Рекомендации по теме
Комментарии
Автор

Should be:
If (position == "manager") document.write("Hello manager");

So why does it work ?
Because 'if' expression evaluates to TRUE as it is possible to assing value "manager" to variable 'position'.

Btw. Thanks for tutorials.

dsperat
welcome to shbcf.ru