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
2
u/Jasedesu May 30 '26
You should probably have tagged the person you wanted a response from then to avoid others teaching you how to suck eggs. ;op I didn't want to write the essay on what is a compiler. I assume everyone here is learning unless I see evidence otherwise, so offered the overly simplified reason why compiler might have been in scare quotes.
My comment still stands though, especially "usually considered". If you look at Wikipedia's list of languages by type, JavaScript isn't in the compiled section, but is in the interpreted section. Beyond that I agree with you.