mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-09 16:01:39 -04:00
fix(curriculum): Add a note to let users know to use JavaScript only in the Real Time Counter lab (#59978)
This commit is contained in:
@@ -19,7 +19,7 @@ Fulfill the user stories below and get all the tests to pass to complete the lab
|
||||
3. When the `#text-input` element contains the text `hello coder` the `#char-count` element should contain the text `"Character Count: 11/50"`
|
||||
4. When the `#text-input` element contains the text `i am a programmer` the `#char-count` element should contain the text `"Character Count: 17/50"`
|
||||
5. When the `#text-input` element contains the text `hello world` the `#char-count` element should contain the text `"Character Count: 11/50"`
|
||||
6. When the `#text-input` element contains the text `I am learning a new language and it is called c++.` the `#char-count` element should contain the text `"Character Count: 50/50"`.
|
||||
6. When the `#text-input` element contains the text `I am learning a new language and it is called c++.` the `#char-count` element should contain the text `"Character Count: 50/50"`. **NOTE**: While the `maxlength` attribute would achieve the correct functionality, this lab requires a JavaScript only solution.
|
||||
7. The user should not be able to enter more than `50` characters in the `textarea` element. When the character count reaches `50`, the text `Character Count: 50/50` should be displayed in `red`.
|
||||
|
||||
**Note:** Be sure to link your stylesheet and the JavaScript file in your HTML.
|
||||
|
||||
Reference in New Issue
Block a user