O'Reilly logo

Dart: Scalable Application Development by Ivo Balbaert, Sergey Akopkokhyants, Davy Mitchell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Dart and JavaScript Interoperation

A lot of web applications are written in JavaScript nowadays and in this chapter, we will focus on how to communicate with them using Dart. We will also cover the following topics:

  • The dart:js library
  • Type conversion
  • JsObject and instantiation
  • JsFunction and the this keyword
  • Dart with jQuery

Interoperation at a glance

Web applications written in Dart can be executed only in a Dart VM that is embedded in a browser called Dartium, a special build of Chromium. To be executed in other web browsers, the Dart code must be compiled to JavaScript—the language supported by all web browsers. Latest tendencies indicate that JavaScript will exist as the language for web development for a long time to come, as it is popular ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required