JavaScript · Film for Types and coercion

Zero + Five is 05?

Someone types five into a form field, you add it to a total of zero, and you get 05. There's no error and no warning, and once you know the rules, there's no mystery.

0:00 / 8:40
Chapter 1 · What goes in a form field

Chapters

    Keyboard

    • Space Play or pause
    • ← → Back or ahead 5 seconds
    • [ ] Previous or next chapter
    • C Captions · M Mute · F Full screen

    Transcript

    Notes for class

    Take it with you