Conditional operators
You have already seen the conditional operator is, however CoffeeScript offers a range of operators to match those present in JavaScript.
COFFEESCRIPT vs JAVASCRIPT
COFFEESCRIPT | JAVASCRIPT |
is | === |
isnt | !== |
not | ! |
and | && |
or | || |
true, yes, off | true |
false, no, off | false |
Now you can successfully use if, else and unless with conditional operators to create a basic program! In the next part we will explore functions and their unique syntax.
반응형
'IT-개발,DB' 카테고리의 다른 글
자바스크립트에서 ==., === (0) | 2019.06.16 |
---|---|
How to disable "Submit" button and multiple submissions? (0) | 2019.05.25 |
git 계정 변경 (0) | 2019.04.01 |
commit messages in Git, Redmine Sync (0) | 2019.04.01 |
Adobe CS3 문제 (0) | 2019.02.10 |
댓글