From a5f149647a4e7f2c0c53fedf6d221a2966a0c90f Mon Sep 17 00:00:00 2001 From: Kristofer Koishigawa Date: Mon, 23 Dec 2024 16:55:24 +0900 Subject: [PATCH] fix: common practices for naming variables and functions multiple choice question (#57662) Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com> --- .../6732c6ab21031b60d2b0c999.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/curriculum/challenges/english/25-front-end-development/lecture-understanding-core-javascript-fundamentals/6732c6ab21031b60d2b0c999.md b/curriculum/challenges/english/25-front-end-development/lecture-understanding-core-javascript-fundamentals/6732c6ab21031b60d2b0c999.md index 3054b3b977a..aa9de6ca0fd 100644 --- a/curriculum/challenges/english/25-front-end-development/lecture-understanding-core-javascript-fundamentals/6732c6ab21031b60d2b0c999.md +++ b/curriculum/challenges/english/25-front-end-development/lecture-understanding-core-javascript-fundamentals/6732c6ab21031b60d2b0c999.md @@ -86,35 +86,35 @@ Remember the prefix we typically use for getter functions. ## --text-- -Which of these is the best name for a constant representing the maximum number of login attempts? +Which of the following should you do if you’re working in an established codebase and / or with a team? ## --answers-- -`max_attempts` +Use your text editor's find-and-replace feature to update any function or variable names you come across that could be improved, even it's not related to the task you're working on. ### --feedback-- -Recall the convention for naming constants in JavaScript. +Remember that this lecture covers some naming conventions, and each codebase could have its own established conventions. --- -`MAX_LOGIN_ATTEMPTS` +Stick to the naming conventions for variables and functions that have already been established. --- -`loginMaxAttempts` +Come up with your own naming conventions for any new code you write. ### --feedback-- -Recall the convention for naming constants in JavaScript. +Remember that this lecture covers some naming conventions, and each codebase could have its own established conventions. --- -`ATTEMPTS_MAX` +Strictly use the naming conventions covered in this lecture. ### --feedback-- -Recall the convention for naming constants in JavaScript. +Remember that this lecture covers some naming conventions, and each codebase could have its own established conventions. ## --video-solution--