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
Advanced JavaScript

You're reading from   Advanced JavaScript Speed up web development with the powerful features and benefits of JavaScript

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher
ISBN-13 9781789800104
Length 330 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Zachary Shute Zachary Shute
Author Profile Icon Zachary Shute
Zachary Shute
Arrow right icon
View More author details
Toc

Testing


Testing code is a lot like going to the gym. You know it is good for you. All of the arguments make sense, but getting up and starting down the road to fitness is difficult. The initial rush feels amazing; however, it is closely followed by sore muscles and you begin to wonder if it was really worth it. You take an hour or more out of your day but all you have to show for it is sore arms and legs. But, after a few weeks, it gets easier. You start to notice the benefits of working out.

Much like going to the gym, you have probably heard how important testing code can be. Writing tests is an integral part of writing good and sustainable code. It can be difficult when you first start writing tests. Writing your first tests and having them run successfully brings a thrill or rush, but after a day or two of taking an hour out of your work day to write tests, you begin to wonder if it is really worth it. But you stick with it. After several weeks, it becomes less tedious and you begin to...

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