Should I say I made a fool out of myself in an interview, when I was asked related to Javascript:
'What is the result of 3 divided by 0 (3/0) in Javascript?'
With my Python Ninja Hat still on, with lots of sprinkles of common sense, was quick to say, 'ZeroDivisionError, or an error similar.'
ZeroDivisionError
For once in my life, I felt 100% confident about an answer, except to JS, when you divide a number by 0, you're in Infinity.
Infinity
smh
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Should I say I made a fool out of myself in an interview, when I was asked related to Javascript:
'What is the result of 3 divided by 0 (3/0) in Javascript?'
With my Python Ninja Hat still on, with lots of sprinkles of common sense, was quick to say, '
ZeroDivisionError
, or an error similar.'For once in my life, I felt 100% confident about an answer, except to JS, when you divide a number by 0, you're in
Infinity
.smh