Question

What is displayed by the statement: alert(00123); And why is this the case?

What is displayed by the statement: alert(00123);

And why is this the case?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: 83 in alert popup

00123 is an octal constant thus its converting to 83 in decimal

To get integer part from 00123 = parseInt('00123',10);

Add a comment
Know the answer?
Add Answer to:
What is displayed by the statement: alert(00123); And why is this the case?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT