[SOLVED] How to push the cleaned word(trimmed) to the array?

If javascript follows the same method approach, switch the variable and Array locations to Push the variable trimmed into the passwordArray.

1 Like

Thank you so much. This .push method is so rare, i couldn’t even find an example code with him.

In Python the method is not .push but .append, which might be why you don’t see it in any examples. It psyched me out when I read your post at first until I realized you were writing in javascript.

        # Append the cleaned word to passwordArray:
1 Like