Quantcast
Channel: Underscore
Viewing all articles
Browse latest Browse all 14

Modelling JavaScript in Scala with Scala.js

$
0
0

Surely there’s something in JavaScript that Scala.js can’t handle? If there is, I’ve not found it yet. Each time I’ve faced some JavaScript obstacle I’ve been overjoyed to find an answer in Scala.js.

In this post I’ll highlight 3 features from Scala.js 1.x that I’ve recently used to dig myself out of a hole. The features are: representing JavaScript global scope values, importing Node modules, and working with JavaScript’s this.

The common thread is that these features let you safely model JavaScript concepts in Scala.

Continue reading...


Viewing all articles
Browse latest Browse all 14

Trending Articles