Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript by Example

You're reading from   JavaScript by Example Learn modern web development with real-world applications

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788293969
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dani Akash S Dani Akash S
Author Profile Icon Dani Akash S
Dani Akash S
Arrow right icon
View More author details
Toc

Summary

In this chapter, you built a Weather Widget for your team while learning about the web components. You created a reusable HTML custom element, which uses shadow DOM to abstract CSS from the rest of the document, making the widget easily pluggable into the rest of the project. You also learned about some methods, such as geolocation and set intervals. But the most important thing you learned in this chapter is the advantage of creating independent components in a team environment. By creating a reusable weather component, you made the work easier for yourself and for the rest of the team.

So far, we have been working on pure JavaScript. However, there are a lot of modern frameworks and libraries today, which makes programming with JavaScript more easier, efficient, and scalable to a large extent. Most of the frameworks concentrate on organizing your entire application into...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image