mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-18 19:00:54 -04:00
fix(curriculum): Number Sorter - Step 6 - improve description (#55649)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ dashedName: step-6
|
||||
|
||||
# --description--
|
||||
|
||||
Remember that `.getElementsByClassName()` returns an array-like object. You can use the spread operator to convert it into an array.
|
||||
Remember that `.getElementsByClassName()` method returns an <dfn>HTMLCollection</dfn>, which is an array-like object of all the elements that have a matching class name. You can use the spread operator to convert it into an array.
|
||||
|
||||
Convert the `document.getElementsByClassName()` call to an array with the spread operator and assign it to a variable called `inputValues`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user