Threadkiller Mk XI

Status
Not open for further replies.
I've just started trying to learn Javascript, please could someone tell me why this isn't working, apparently I'm not declaring the function, I feel like the answer to this will make me feel really stupid. Its supposed to print out "I want to eat "insert food name here" "

var foodDemand = function (food) {
console.log("I want to eat" + food);};
foodDemand = ("Cake");
 
I've just started trying to learn Javascript, please could someone tell me why this isn't working, apparently I'm not declaring the function, I feel like the answer to this will make me feel really stupid. Its supposed to print out "I want to eat "insert food name here" "

var foodDemand = function (food) {
console.log("I want to eat" + food);};
foodDemand = ("Cake");

It won't work, you forgot to call wallet :p


Plus need to do last line as
foodDemand("cake");
 
I've just started trying to learn Javascript, please could someone tell me why this isn't working, apparently I'm not declaring the function, I feel like the answer to this will make me feel really stupid. Its supposed to print out "I want to eat "insert food name here" "

var foodDemand = function (food) {
console.log("I want to eat" + food);};
foodDemand = ("Cake");

You're officially my new favourite person. Javascript is officially my favourite language. Been using it now for 10 years and I'm considering writing a game in it.

Hollar if you need help, I'll be glad to oblige.
 
You're officially my new favourite person. Javascript is officially my favourite language. Been using it now for 10 years and I'm considering writing a game in it.

Hollar if you need help, I'll be glad to oblige.

Haha thanks! I'm pretty sure I'm going to be needing help somewhere along the line :P
 
You're officially my new favourite person. Javascript is officially my favourite language. Been using it now for 10 years and I'm considering writing a game in it.

Hollar if you need help, I'll be glad to oblige.

You should apply for a job, I think we'll be looking (that is if you looking).
 
You should apply for a job, I think we'll be looking (that is if you looking).

Dude, I might actually consider it if things don't work out in the next month or two. Fingers crossed and prayers up in the ayers that we might get some serious cash rolling in next month. We're the tech-partners for a new NPO and agreement is that we get 30% of their membership revenue. With numbers into the thousands looking to sign up it will be very lucrative for us. Test site up today.
 
Dude, seriously. I was cleaning up our AD a bit earlier and realized we only have a handful of devs (after some people leaving). And I was shocked as to how little we now had.
 
Status
Not open for further replies.
Back
Top