This quiz goes to full-screen once you press the Start button, or any Next button after exiting the quiz window.
At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
Which parts of the string "Rabbit lovers" does the expression /r/i match?
/r/i will look for the character 'r' case-insensitively and thus match the first 'R' character in the given string. This goes with choice A).
Which parts of the string "Mango Milkshake Moment" does the expression /M/g match?
/M/g will look for the character 'M' globally (and case-sensitively) and thus match all 'M''s in the given string. This goes with choice C).
What does the g flag do?
Which parts of the string "Hello, HELLO and hello!" does the expression /HELLO/i match?