From 2931461e2e74fdc028012e2049d960c520db6e3f Mon Sep 17 00:00:00 2001 From: Kouka Date: Tue, 25 Mar 2025 00:04:40 +0200 Subject: [PATCH] Corrected description for "Built-in Functions" section (#8391) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Corrected description for "Built-in Functions" section The previous description primarily explained methods rather than built-in functions, which could cause confusion. This update provides a clearer explanation of built-in functions, including examples like parseInt(), setTimeout(), and Math.random(), while also acknowledging built-in methods within JavaScript objects. This ensures that the description aligns with the section title and provides more accurate information for learners. * Fixed explanation of JavaScript built-in functions Refined the description of JavaScript’s built-in functions that are globally available or tied to specific objects. Clarified that objects like Array, String, and Date provide built-in methods for efficient data manipulation. --- .../content/built-in-functions@s8wUJivWmetysJ8bt9FBC.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data/roadmaps/javascript/content/built-in-functions@s8wUJivWmetysJ8bt9FBC.md b/src/data/roadmaps/javascript/content/built-in-functions@s8wUJivWmetysJ8bt9FBC.md index 97189bb27..89d706ab9 100644 --- a/src/data/roadmaps/javascript/content/built-in-functions@s8wUJivWmetysJ8bt9FBC.md +++ b/src/data/roadmaps/javascript/content/built-in-functions@s8wUJivWmetysJ8bt9FBC.md @@ -1,8 +1,6 @@ # Built in functions -- A JavaScript **method** is a property containing a **function definition** . In other words, when the data stored on an object is a function we call that a method. -- To differentiate between properties and methods, we can think of it this way: **A property is what an object has, while a method is what an object does.** -- Since JavaScript methods are actions that can be performed on objects, we first need to have objects to start with. There are several objects built into JavaScript which we can use. +JavaScript offers a variety of built-in functions that simplify common tasks, available globally or within specific objects without requiring explicit definition. Functions like parseInt(), setTimeout(), and Math.random() can be used directly, while objects like Array, String, and Date include built-in methods for efficient data manipulation. Understanding these functions enhances development by leveraging JavaScript’s core features without reinventing the wheel. Visit the following resources to learn more: