mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-28 14:01:32 -05:00
fix(curriculum): small fixes in JS spam filter project (#55170)
This commit is contained in:
@@ -7,7 +7,7 @@ dashedName: step-5
|
||||
|
||||
# --description--
|
||||
|
||||
Back in your event listener, you need to update the text of the `result` element. You can use a `ternary` operator to achieve this task.
|
||||
Back in your event listener, you need to update the text of the `result` element. You can use a ternary operator to achieve this task.
|
||||
|
||||
Here is an example of assigning the result of a ternary operator to an element's text content:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ dashedName: step-7
|
||||
|
||||
Regular expressions can take <dfn>flags</dfn> to modify their behavior. For instance, the `i` flag can be used to make the expression ignore case, causing it to match `hello`, `HELLO`, and `Hello` for the expression `/hello/`.
|
||||
|
||||
Flags are added after the trailing backslash. Add the `i` flag to your `helpRegex`.
|
||||
Flags are added after the trailing slash. Add the `i` flag to your `helpRegex`.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user