JavaScript Problem: Switching Name Order Using Capturing Groups in Regular Expressions

Опубликовано: 06 Октябрь 2024
на канале: All Things JavaScript, LLC
2,150
99

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-regul...

Courses offered on Udemy: Getting Started or Advanced Topics at a huge discount:
https://www.udemy.com/learn-modern-ja...
https://www.udemy.com/learn-modern-ja...

Tutorials referred to in this video:
Higher Order Functions:    • Higher Order Functions: A JavaScript ...  
Map method:    • JavaScript Fundamentals: Mapping a Ja...  

#javascript #AllThingsJavaScriptLLC