Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

Thursday, 3 September 2015

How to dynamically include js on the browser

Wednesday, 16 July 2014

Functional JavaScript if statement?

Does JavaScript have if statement with return value like Scala?
No, it doesn't.

You have to write a ternary:
var result = checkingValue == null ? "" : checkingValue;
or use function.