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.

Daniel Kay (7) [Avatar] Offline
#1
Hi,
on page the text below the second code block says that window whatever will get assigned to the whatever variable. In my browser console undefined is assigned instead.

Best regards,
Daniel
Josip Maras (30) [Avatar] Offline
#2
Daniel Kay wrote:Hi,
on page the text below the second code block says that window whatever will get assigned to the whatever variable. In my browser console undefined is assigned instead.

Best regards,
Daniel


Hi Daniel,

Thanks for catching this mistake, it should be that whatever will have the value of undefined, simply because there's no return statement in the Ninja function.

Josip