In this video I'll be taking you step by step in detail how I solved the "Convert HTML entities" challenge in 3 easy steps using javascript on FreeCodeCamp .org.
The steps I took to complete this challenge are as follows(I go into more detail in the video):
STEP 1
Create a regex
STEP 2
Replace regex with a function
STEP 3
Create cases for every possible match
Useful links:
Regex101(brilliant resource for learning and validating your regex): https://goo.gl/tv3ZzZ
replace(): https://goo.gl/xUZG6D
html entities: https://goo.gl/ouP2NB
switch statement: https://goo.gl/VvDpxT
RegExp: https://goo.gl/YvbEc1
Download
0 formats
No download links available.
FreeCodeCamp - Convert HTML entities - SOLVED IN 3 EASY STEPS! | NatokHD