mixedMessages.js Portfolio Feedback

First, here is my Code

For me, the most difficulty was the use of git and GitHub. I need many helps from chatGPT, for the commands I need to use, because I didn’t understand the git & GitHub course from Codecademy. I definitely need to learn and use more git and GitHub!
The easy part was the coding. I made a plan what I need to do and how I want to implementing it. I change during the coding the plan, but it was minor tweaks here and there.
It took about 10h I guess. I took about two evening and one afternoon to accomplish

It would be nice if you can give me feedback for the following things:

  • Syntax and comments: did I did it good? What can I do different?

  • The use of Objects and Arrays: Did I use it in the right way? I know didn’t make a complex use of it.

  • Is it a good idea to use function inside of a objects?

  • When possible, did I use git and GitHub right?

  • If you have other things to say, just say it!

sry for my bad English :confused:
Thx for everyone who look at the code and give me some feedback :slight_smile:

A lot of your logic is repeated. If you make a function that takes an array and returns a random index of that array it will be much more readable and efficient.

const getRanIndex = (arr) => {
const ranIndex = Math.floor(Math.random()*arr.length);
return arr[ranIndex];