From e5894663a2b955371c501fc81a0656ea3c6ac2b0 Mon Sep 17 00:00:00 2001 From: Oluwadamilola Oladipo <30751828+Oladiman@users.noreply.github.com> Date: Sat, 13 Dec 2025 12:55:49 +0100 Subject: [PATCH] Update objects.md Typo fix consisdered => considered --- javascript/basics/objects.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/basics/objects.md b/javascript/basics/objects.md index 709cae9..4961589 100644 --- a/javascript/basics/objects.md +++ b/javascript/basics/objects.md @@ -2,7 +2,7 @@ * All Javascript values except primitives(string, number, bigInt, boolean, null, undefined) are Objects like Arrays, Regular expressions, Functions, Dates, Maths etc. -* Even strings, numbers and booleans can be consisdered as Objects if they are defined with new keyword. +* Even strings, numbers and booleans can be considered as Objects if they are defined with new keyword. * As discussed before, Object datatype represents complex entities which consists of key-value pairs. Objects can be created using curly brackets({ }) with an optional list of properties. @@ -84,4 +84,4 @@ console.log(arr) ; // [ [ 'name', 'foo' ], [ 'id', 123 ] ] The above example helps you to understand how you can convert objects to arrays. If you are using `Object.entries` then you need to destructure it like `const [name,id] of arr`. -Once the objects are converted to arrays, then you can use the normal iteration techniques for an array as discussed [here](https://onecompiler.com/posts/3vgf2g9ag/different-ways-of-iterating-over-an-array-in-javascript). \ No newline at end of file +Once the objects are converted to arrays, then you can use the normal iteration techniques for an array as discussed [here](https://onecompiler.com/posts/3vgf2g9ag/different-ways-of-iterating-over-an-array-in-javascript).