xxxxxxxxxx
/* You can specify the possible existence of an
element with a question mark, ?. This checks for
zero or one of the preceding element. You can think
of this symbol as saying the previous element is
optional. */
let favWord = "favorite";
let favRegex = /favou?rite/; // Change this line
let result = favRegex.test(favWord);
// here a similar example
let american = "color";
let british = "colour";
let rainbowRegex= /colou?r/;
rainbowRegex.test(american);
rainbowRegex.test(british);
xxxxxxxxxx
you may exceed docker build image maximum limit if you see [locked] in your
docker hub repositories check it out from:
https://hub.docker.com/repositories/<username>