And this is why Scala.js interops seamlessly with JavaScript. [1] Most of the time, you don&#x27;t even know whether you&#x27;re calling other Scala.js code or JavaScript libraries, and it&#x27;s all typed. If you want to interact with JS in a stricter way, you should check it out.<p>[1] <a href="http:&#x2F;&#x2F;www.scala-js.org&#x2F;doc&#x2F;interoperability&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.scala-js.org&#x2F;doc&#x2F;interoperability&#x2F;</a>