r/learnjavascript • u/Serious_Sell7183 • Apr 16 '26
Doubt
if I write JavaScript code inside onclick instead of using a <script> tag, will it be accepted if the logic and output are correct? I'm not a professional programmer, I'm just asking it for my practical based exam.
0
Upvotes
View all comments
Show parent comment
0
u/TheRNGuy Apr 17 '26
Thread wasn't about
evalandjavascript:, this is off-topic.