From 1f39f655c624e433c4bb78bee587c5ff99398688 Mon Sep 17 00:00:00 2001 From: Ahmed Hakeem <65634467+Ahmed-Hakeem@users.noreply.github.com> Date: Sat, 10 Feb 2024 11:35:04 -0800 Subject: [PATCH] fix private features' link in classes overview page (#32206) * fix private features' link in classes overview page * Update files/en-us/web/javascript/reference/classes/index.md --------- Co-authored-by: Joshua Chen --- files/en-us/web/javascript/reference/classes/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/classes/index.md b/files/en-us/web/javascript/reference/classes/index.md index 5f2d34f2ac63eb6..4698af5fcfd385d 100644 --- a/files/en-us/web/javascript/reference/classes/index.md +++ b/files/en-us/web/javascript/reference/classes/index.md @@ -179,7 +179,7 @@ class Rectangle { } ``` -Class fields are similar to object properties, not variables, so we don't use keywords such as `const` to declare them. In JavaScript, [private features](#private_class_features) use a special identifier syntax, so modifier keywords like `public` and `private` should not be used either. +Class fields are similar to object properties, not variables, so we don't use keywords such as `const` to declare them. In JavaScript, [private features](#private_class_features_2) use a special identifier syntax, so modifier keywords like `public` and `private` should not be used either. As seen above, the fields can be declared with or without a default value. Fields without default values default to `undefined`. By declaring fields up-front, class definitions become more self-documenting, and the fields are always present, which help with optimizations.