diff --git a/dom-api-question.js b/dom-api-question.js index 7595cbb..e246db6 100644 --- a/dom-api-question.js +++ b/dom-api-question.js @@ -38,7 +38,7 @@ // Solution const INDENT_SIZE = 4; const getSpaces = (length) => { - return new Array(length).fill(" ").join(""); + return " ".repeat(length); }; class Node {