From a95ff3e73a9af06a1706e7c0381763647d35874d Mon Sep 17 00:00:00 2001 From: yashrajbharticybtekk Date: Sat, 7 Dec 2024 11:53:45 +0530 Subject: [PATCH] fix:example --- files/en-us/web/api/svganimatednumber/animval/index.md | 2 +- files/en-us/web/api/svganimatednumber/baseval/index.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/api/svganimatednumber/animval/index.md b/files/en-us/web/api/svganimatednumber/animval/index.md index 14964f3856f2e09..b43da68f5e348bb 100644 --- a/files/en-us/web/api/svganimatednumber/animval/index.md +++ b/files/en-us/web/api/svganimatednumber/animval/index.md @@ -26,7 +26,7 @@ rect.setAttribute("width", "100"); const animatedWidth = rect.width; // Simulate animation (for example, through CSS or JS) -console.log(animatedWidth.animVal); // Outputs: 100 (or animated value if in motion) +console.log(animatedWidth.animVal); // Output: 100 (animated value in motion) ``` ## Specifications diff --git a/files/en-us/web/api/svganimatednumber/baseval/index.md b/files/en-us/web/api/svganimatednumber/baseval/index.md index 3e1718e8b23b382..0dd25dab724e914 100644 --- a/files/en-us/web/api/svganimatednumber/baseval/index.md +++ b/files/en-us/web/api/svganimatednumber/baseval/index.md @@ -28,13 +28,13 @@ path.setAttribute("pathLength", "10"); const animatedNumber = path.pathLength; // Get the base value -console.log(animatedNumber.baseVal); // Outputs: 10 +console.log(animatedNumber.baseVal); // Output: 10 // Modify the base value animatedNumber.baseVal = 15; // Verify the reflected attribute value -console.log(path.getAttribute("pathLength")); // Outputs: "15" +console.log(path.getAttribute("pathLength")); // Output: "15" ``` ## Specifications