From f253fd6639ea44376e2811cfb38bc8c9e3cabbcf Mon Sep 17 00:00:00 2001 From: Omar Rafiq <119431390+omarraf@users.noreply.github.com> Date: Thu, 24 Apr 2025 23:48:25 -0700 Subject: [PATCH] fix(curriculum): Add a note to let users know to use JavaScript only in the Real Time Counter lab (#59978) --- .../lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md b/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md index f2d2eca2eb6..d0292e927bc 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md +++ b/curriculum/challenges/english/25-front-end-development/lab-real-time-counter/66bb3e20d3dc5b6d0a21f5dd.md @@ -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.