JavaScript Problem: Switching Name Order Using Capturing Groups in Regular Expressions
2,201 views · Published 7 November 2018 · 8:11 · Indexed 2 October 2026
Channel: All Things JavaScript, LLC · 2018 · Education
In this JavaScript problem we look at switching the first name and last name for several names in an array. However, we take a unique approach by using capturing groups in regular expressions with the replace method of strings. For more resources on JavaScript: http://www.allthingsjavascript.com New Mastering Regular Expressions in JavaScript: https://www.udemy.com/mastering-regular-expressions-in-javascript/?couponCode=YOUTUBE18 Courses offered on Udemy: Getting Started or Advanced Topics at a huge discount: https://www.udemy.com/learn-modern-javascript-getting-started/?couponCode=YOUTUBE https://www.udemy.com/learn-modern-javascript-advanced-topics/?couponCode=YOUTUBE Tutorials referred to in this video: Higher Order Functions: https://youtu.be/O9lMynNdka4 Map method: https://youtu.be/W5TtMAYUPGQ #javascript #AllThingsJavaScriptLLC