TRAINING ON THE CULLING OF STRATHOLME

Subscribers:
4,890
Published on ● Video Link: https://www.youtube.com/watch?v=GxbIVZonCsc



Duration: 2:36
25 views
0


Prince Arthas requires your assistance! We must assist Arthas in stopping the infection from spreading to other areas of the Kingdom after Mal'ganis infected the residents of Stratholme.

EXPLANATION CODE:
1) replace(/\w?i+\w?/gi,''): This uses a regular expression to find any sequence of one or more "i" characters that are surrounded by zero or one word characters (letters, digits, or underscores) on either side. The g flag indicates that the search should be global (i.e., not stop at the first match), and the i flag makes the search case-insensitive. The replacement string is an empty string, so any matches are removed from the string.
2) Replaces any series of one or more blank characters (spaces, tabs, newlines, etc.) with a single space character with the syntax replace(/s+/g,").
3) trim(): This removes any leading or trailing whitespace characters from the string.
#codewars #code #wars #javascript #programming #education #tutorial #computerscience #puzzles #fundamentals #strings #games #regularexpressions #training #the #culling #of #prince #arthas #requires #your #assistance #must #assist #stopping #the #infection #from #spreading #other #kingdom #after #malganis #infected #residents







Tags:
codewars
code
wars
tutorial
step by step
education
computer science
games
puzzles
fundamentals
javascript
programming
strings
regular expressions
training on the culling of stratholme
training
on
the
culling
of
stratholme
prince
arthas
requires
your
assistance
must
assist
stopping
infection
from
spreading
other
kingdom
after
malganis
infected
residents