Jump to content

Help me with Codecademy.

Go to solution Solved by Nineshadow,

Your forgot to prompt the user for their name.

 

name = prompt("what's your name")

What do I do? I can't figure it out.

 

 

You have to actually set it to prompt, currently it's setting an empty variable.

The projects never end in my line of work.

CPU: Dual Xeon E5-2650v2 || GPU: Dual Quadro K5000 || Motherboard: Asus Z9PE-D8 || RAM: 64GB Corsair Vengeance || Monitors: Dual LG 34UM95, NEC MultiSync EA244UHD || Storage: Dual Samsung 850 Pro 256GB in Raid 0, 6x WD Re 4TB in Raid 1 || Sound: Xonar Essense STX (Mainly for Troubleshooting and listening test) || PSU: Corsair Ax1500i

CPU: Core i7 5820k @ 4.7GHz || GPU: Dual Titan X || Motherboard: Asus X99 Deluxe || RAM: 32GB Crucial Ballistix Sport || Monitors: MX299Q, 29UB65, LG 34UM95 || Storage: Dual Samsung 850 EVO 1 TB in Raid 0, Samsung 850 EVO 250GB, 2TB Toshiba scratch disk, 3TB Seagate Barracuda || PSU: EVGA 1000w PS Platinum

Link to comment
https://linustechtips.com/topic/364015-help-me-with-codecademy/#findComment-4931247
Share on other sites

Link to post
Share on other sites

What's in the instruction. Set the variable Name to prompt, What's your name? The clue would be that you have declared a variable, assigned it no value and then used a comparison operator against it; the prompt will assign whatever the user types into the prompt to variable name. 

Link to comment
https://linustechtips.com/topic/364015-help-me-with-codecademy/#findComment-4931253
Share on other sites

Link to post
Share on other sites

Your forgot to prompt the user for their name.

 

name = prompt("what's your name")

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to comment
https://linustechtips.com/topic/364015-help-me-with-codecademy/#findComment-4931276
Share on other sites

Link to post
Share on other sites

-snip-

You have to fill the 'name' variable in some way.

Now it's just an empty variable, so it will always console.log "Your name isn't Sam!"

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
https://linustechtips.com/topic/364015-help-me-with-codecademy/#findComment-4931286
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×