this post was submitted on 29 Aug 2023
17 points (94.7% liked)
General Programming Discussion
7803 readers
1 users here now
A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
(For point 1) Got it, from now on variables will be declared with
let
. I don't understand what is"use strict";
maybe you can explain it.(For point 2) I was testing to see if
reversedWord
printed the desired output in the Console, forgot to remove it after finishing the program. I also don't understand what 'O(N^2)' and 'O(N)' is, but+=
-ing an empty string is a great idea, why didn't i think of that.