Skip to Content
Test-Driven JavaScript Development
book

Test-Driven JavaScript Development

by Ravi Kumar Gupta
December 2015
Intermediate to advanced
240 pages
4h 57m
English
Packt Publishing
Content preview from Test-Driven JavaScript Development

Summary

Our primary objective is to write cross-browser code for our websites. In order to develop code that works on all major browsers, we need to detect support for features we are going to use. Thus, feature detection becomes a very critical part of a software development when it comes to develop a uniform UI. JavaScript libraries such as Modernizr help detecting features neatly. In this chapter, you learned how to use Modernizr to detect various CSS and HTML5 features. You learned about some useful API functions of Modernizr, which help us test features and extend Modernizr further for detecting features that are not yet supported by Modernizr.

You also learned about browser detection and feature detection and why browser detection is discouraged. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driven JavaScript Development

Test-Driven JavaScript Development

Christian Johansen
Front-End Development Projects with Vue.js

Front-End Development Projects with Vue.js

Raymond Camden, Hugo Di Francesco, Clifford Gurney, Philip Kirkbride, Maya Shavin, Dániel Szabó

Publisher Resources

ISBN: 9781782174929Supplemental Content