Red - Green - Refactor!
Red: Write a test. The test fails because you haven't written any code yet.
Green: Write code that passes your test (and all previous tests). Don't be clever, just write code so your tests pass!
Refactor: There are many reasons to refactor, such as efficiency, code style, and readability. Make sure your code still passes your tests as you refactor.
Thanks for reading ❤
If you liked this post, please do share/like it with all of your programming buddies!
Follow us on Facebook | Twitter
☞ The Complete JavaScript Course 2019: Build Real Projects!
☞ Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex)
☞ JavaScript Bootcamp - Build Real World Applications
☞ JavaScript Programming Tutorial - Full JavaScript Course for Beginners
☞ New ES2019 Features Every JavaScript Developer Should Know
☞ Best JavaScript Frameworks, Libraries and Tools to Use in 2019
☞ JavaScript Basics Before You Learn React
☞ Build a CMS with Laravel and Vue
☞ Google’s Go Essentials For Node.js / JavaScript Developers
☞ 7 best JavaScript Design Patterns You Should Know
☞ 12 Concepts That Will Level Up Your JavaScript Skills
☞ React vs Angular vs Vue.js by Example
#javascript #testing #web-development