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.

412961 (1) [Avatar] Offline
#1
Part 2, Section 3, Question 5 states the code snippet:

function getNinjaWieldingWeapon(ninja, weapon = "katana"){
 return ninja + " " + katana;
}


but it should be:

function getNinjaWieldingWeapon(ninja, weapon = "katana"){
 return ninja + " " + weapon;
}
420265 (3) [Avatar] Offline
#2
This is error still existing in v10 (latest version)

412961 wrote:Part 2, Section 3, Question 5 states the code snippet:

function getNinjaWieldingWeapon(ninja, weapon = "katana"){
 return ninja + " " + katana;
}


but it should be:

function getNinjaWieldingWeapon(ninja, weapon = "katana"){
 return ninja + " " + weapon;
}
Josip Maras (30) [Avatar] Offline
#3
Hi,

Thanks for noticing that. We'll fix it in the following iterations.
For some reason, I didn't get a notification for this post, sorry for not noticing it earlier.

Josip

435657 (4) [Avatar] Offline
#4
Glad to see this was already pointed out, also just found this in my version (11/7/2016)