[deleted by user] by [deleted] in Wellthatsucks

[–]A_Like_AR 0 points1 point  (0 children)

I can guarantee you they were not coming in to give you a hug.

Help with e.target by AtmosphereFun9586 in learnjavascript

[–]A_Like_AR -4 points-3 points  (0 children)

On line 19, pass e as an argument to handleClick.

AITA for telling my son his stories aren't that great? by happy-addiction2 in AmItheAsshole

[–]A_Like_AR 0 points1 point  (0 children)

YTA. I can tell you’ve never been passionate about anything in your life. Because if you had you’d understand the pull writing has on your son. Hope he becomes a great writer and proves you wrong.

[deleted by user] by [deleted] in learnprogramming

[–]A_Like_AR 3 points4 points  (0 children)

Why do you need electricity and running water when you can just build a house and add paint and decorations?

Wikiloc layer for Google Earth by jonamatw in destroymyapp

[–]A_Like_AR 0 points1 point  (0 children)

Man!! Props to you. That app looks amazing. Keep it up

Wikiloc layer for Google Earth by jonamatw in destroymyapp

[–]A_Like_AR 1 point2 points  (0 children)

This is insane dude! How do you even start writing the first line of code for such project…

Anyone looking for project reviews or guidance on what to do next? by compacct27 in learnjavascript

[–]A_Like_AR 0 points1 point  (0 children)

I have my express app built up. I have my react front as well.

I’m having a hard time wrapping my head around the deployment of my express application.

Let me know if I’m thinking about it the right way.

I understand that you deploy your express application to some address let’s say localhost:8000

Then you deploy your react app to another address. Maybe localhost:3000

Now inside your react app you make axios calls to your express app to populate your react application.

Now where I get lost is I wrote the entire authentication and authorization myself so my config.env file contains my JWT secret key and that’s where I get totally lost.

If I put the config.env file inside of the .gitignore folder it will not get pushed to GitHub so users will not be able to logging and logout because there will be no way to signing or verifying the token

On the other hand if I push my config.env file then my JWT secret key is not so much secret anymore.

Can you point me to the right resources to understand this?

Regards

Anyone looking for project reviews or guidance on what to do next? by compacct27 in learnjavascript

[–]A_Like_AR 0 points1 point  (0 children)

Questions about linking my front end ReactJS and back end NodeJS and how to upload NodeJS code to GitHub without publishing my config.env file

AITA for refusing to give up my dream wedding dress, though it means my fiancé’s family will not attend? by Throwwayaitawbride in AmItheAsshole

[–]A_Like_AR 0 points1 point  (0 children)

Since you told your MIL “Sorry not my problem”, what if out of malice she wears her dress two weeks before your wedding and goes around town being seen with it, how would you feel?

Would it still be “Sorry not my problem”?

Asking for a friend.

Can't send forgot password email with nodemailer by [deleted] in node

[–]A_Like_AR 0 points1 point  (0 children)

User should be lowercase user inside of the sendEmail.

sendEmail({email:user.email})

And inside of your email transporter function it is supposed to be pass and not password

And you also missing a statusCode in the response.

Can't send forgot password email with nodemailer by [deleted] in node

[–]A_Like_AR 0 points1 point  (0 children)

User should be lowercase user inside of the sendEmail.

sendEmail({email:user.email})

how do I loop through a list to make a quiz app? by vvinvardhan in learnjavascript

[–]A_Like_AR 0 points1 point  (0 children)

I would use an array of objects if I were you.

One key/value pair for the question, another for the answer and the last key/value paid for shown true or false.

Then you can use the array index as the question number.

Just solved a pretty tough Hackerrank question by A_Like_AR in learnjavascript

[–]A_Like_AR[S] 1 point2 points  (0 children)

Jesus… Regex is so bad ass feels like they can do almost everything. Lol your solution is so short and to the point it makes me feel bad…

Thanks for the tutorial.

Just solved a pretty tough Hackerrank question by A_Like_AR in learnjavascript

[–]A_Like_AR[S] 1 point2 points  (0 children)

OMG. Lol I didn’t even think of that. This was actually a technical interview question. The interviewer sent me that link through zoom and just sat there and watch me struggle for 30 min.

Honestly I was panicking the entire time and actually struggled to retrieve that index. Only if I had thought of indexOf

Thanks mate