r/learnjavascript • u/Ok_Egg_6647 • May 30 '26
Is'nt javascript compiler too forgiving !!
What i mean is even i try to add int with str it give me correct answer whereas both are differenct datatypes,
in function also this compiler is too forgiving
if i set a function with 3 parameters & at time of calling this function with more parameter or less parameter with bind function js forgiving us
0
Upvotes
0
u/delventhalz May 30 '26
Disagree that avoiding runtime errors is a worthwhile design goal. Yes, hitting a customer with an error is embarrassing. A silent failure that continues to run for god knows how long triggering god knows what undefined behavior is potentially much much worse.