NewsWhy Is Chrome 36 So Popular With JavaScript Developers?

Why Is Chrome 36 So Popular With JavaScript Developers?

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

Earlier this month, Google released Chrome 36, and the new version of the browser has been a hit with JavaScript developers thanks to a feature called “Object.observe().” Because JavaScript separates an app’s data structure from its interface, it can be difficult to make sure that data changes get reflected in the interface. Object.observe() is a low-level JavaScript API supported by Chrome that offers two-way data binding to connect the data and the interface.

Amjad Masad, a developer at Facebook, calls two-way data binding the “holy grail of JavaScript MVC frameworks.” He explains, “When you have true data binding, it reflects automatically in the user interface without you putting in any ‘glue’ code in the middle. You simply describe your view and every time the model changes it reflects the view. This is why it’s desirable.”

While Object.observe() could one day be an official part of JavaScript, for now it’s only supported by Chrome.

View article

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories