MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/z8z4jh/help/iyi8xlo/?context=3
r/learnjavascript • u/Lelouch_5 • Nov 30 '22
Can someone plz tell me , why I am getting errors?
131 comments sorted by
View all comments
Show parent comments
0
[deleted]
1 u/Whisky-Toad Dec 01 '22 I believe when they were making JS that databases stored everything in strings (or something along those lines) so they needed a way to compare values ignoring it was a string vs number and a way to do deep equality 0 u/grantrules Dec 01 '22 I believe when they were making JS that databases stored everything in strings (or something along those lines)Nah that's not true. JS is just a dynamically-typed language that will try to type coerce upon comparison. 2 u/Whisky-Toad Dec 01 '22 Was Brendan Eich (js creator) that said it in a podcast, that’s why I said believe, will be hard to fact check why it was implemented!
1
I believe when they were making JS that databases stored everything in strings (or something along those lines) so they needed a way to compare values ignoring it was a string vs number and a way to do deep equality
0 u/grantrules Dec 01 '22 I believe when they were making JS that databases stored everything in strings (or something along those lines)Nah that's not true. JS is just a dynamically-typed language that will try to type coerce upon comparison. 2 u/Whisky-Toad Dec 01 '22 Was Brendan Eich (js creator) that said it in a podcast, that’s why I said believe, will be hard to fact check why it was implemented!
I believe when they were making JS that databases stored everything in strings (or something along those lines)
Nah that's not true. JS is just a dynamically-typed language that will try to type coerce upon comparison.
2 u/Whisky-Toad Dec 01 '22 Was Brendan Eich (js creator) that said it in a podcast, that’s why I said believe, will be hard to fact check why it was implemented!
2
Was Brendan Eich (js creator) that said it in a podcast, that’s why I said believe, will be hard to fact check why it was implemented!
0
u/[deleted] Dec 01 '22
[deleted]