The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

danoc (5) [Avatar] Offline
In listing 3.4, the zip code value is given as a decimal
cities.zip_lookup( 10016 );

But running this code in strict mode with a zip code that begins with a zero
cities.zip_lookup( 07946 );

results in an error.

Suggestion: change the code to pass the zip code value as a string
cities.zip_lookup( '07946' );
TheWexler (62) [Avatar] Offline
Thanks for the comment. That's a good find and a good suggestion!