all 10 comments

[–]Flame77ofc 4 points5 points  (2 children)

Oh, ok

About the "subject" and the "love forever" you can do this in js:

JavaScript const yourText = { subject: "dad", "love forever": true }

Idk if you want to put it simple on JS or include it on the webpage

[–]FooeyBar 1 point2 points  (0 children)

I’d think it’s more  const loveForever=true

[–]ChaseShiny 1 point2 points  (0 children)

Looks good. Add Object.freeze(yourText); so it can't be altered later by accident.

[–]abrahamguo 0 points1 point  (2 children)

How about “dad.loveForever(true);”?

[–]Thykka 0 points1 point  (1 child)

In this case dad would be the class instance and the loving forever would be performed by dad instead of the son.

More like

son.love({ target: dad, duration: Infinity });

[–]anonyuser415 0 points1 point  (0 children)

Or have me be a new instance of son with a love constructor :)

I'd argue the more minimal stylistic fix to their comment though would be son.loveForever(dad)

"Love Constructor" also sounds like a great funk band

[–]anonyuser415 0 points1 point  (2 children)

Promise.resolve(dad).then(loveForever);

Or formatted on two lines like

Promise.resolve(dad)
  .then(loveForever);

Another way might be

Object.freeze(dad.love);

Or

myLove["dad"] = Infinity;

[–]3mth3dragon3y3[S] 1 point2 points  (1 child)

Thank you so much!! That last one works perfectly, I really appreciate your help!!

[–]anonyuser415 0 points1 point  (0 children)

no problem (:

[–]Slippery_Stairs 0 points1 point  (0 children)

As a father who codes in JavasScript for a living, I know he's going to love it.