From 4922e57b63e6346e072960e83858549fe68635de Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 14 Oct 2025 20:36:01 +0100 Subject: [PATCH] Update README to emphasize function naming Clarified the importance of naming functions in the README. --- 2-js-basics/2-functions-methods/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-js-basics/2-functions-methods/README.md b/2-js-basics/2-functions-methods/README.md index d5525bb1..03391e8a 100644 --- a/2-js-basics/2-functions-methods/README.md +++ b/2-js-basics/2-functions-methods/README.md @@ -18,7 +18,7 @@ When we think about writing code, we always want to ensure our code is readable. At its core, a function is a block of code we can execute on demand. This is perfect for scenarios where we need to perform the same task multiple times; rather than duplicating the logic in multiple locations (which would make it hard to update when the time comes), we can centralize it in one location, and call it whenever we need the operation performed - you can even call functions from other functions!. -Just as important is the ability to name a function. While this might seem trivial, the name provides a quick way of documenting a section of code. You could think of this as a label on a button. If I click on a button which reads "Cancel timer", I know it's going to stop running the clock. +Just as important is the ability to name a function. While this might seem trivial, the name provides a quick way of documenting a section of code. You could think of this as a label on a button. If I click on a button which reads "Cancel timer", I know it's going to stop running the clock. ## Creating and calling a function