1 JavaScript is everywhere

 
Atwood’s Law: any application that can be written in JavaScript, will eventually be written in JavaScript.

—Jeff Atwood, co-founder of Stack Overflow

This chapter covers

  • What makes JavaScript special
  • How JavaScript evolves over time
  • Three best practices in JavaScript development

JavaScript began as a 10-day project to add a scripting language to Netscape’s web browser back in 1995. Today, it’s one of the most widely used programming languages in the world. Look around and you’ll see it everywhere: websites, servers, mobile and desktop apps, game consoles, IoT devices, and even your car. It’s truly remarkable for a single language to be so useful across so many domains. How did it make the leap from the web browser to the wider world of computing? In a word: evolution.

1.1 Understanding the JavaScript language

1.1.1 JavaScript runtimes and engines

1.1.2 How does JavaScript get new features?

1.1.3 Transpilers and polyfills give us access to tomorrow’s JavaScript today

1.2 Navigating the world of frameworks

1.2.1 Web UI frameworks

1.2.2 Server frameworks

1.2.3 App frameworks

1.3 Using current best practices

1.3.1 Type checking

1.3.2 Linting and formatting

1.3.3 Testing

1.4 Challenges facing JavaScript Ninjas

1.4.1 Performance

1.4.2 Collaboration at scale

1.4.3 Dependency management

1.5 Summary