File:JavaScript Demo Revised.jpg

Proper assignment of a value to fontSize requires a type to be specified. Some browers are forgiving, others more strict.