Doubt again

I am stuck in this pizza exercise I am working on … Please help!!

You mind posting your code for the lesson and what error or problem you are having with it? :thumbsup:

2 Likes

yep sure…

function takeOrder (topping, crustType) {
console.log(‘Order: ’ + crustType +’ crust topped with ’ + topping );
}

takeOrder( ‘paproni’, ‘regular’);
takeOrder(‘olives’, ‘medium’);
takeorder(‘bacon’, ‘large’);
The thing is that I am not getting the last one printed!!!

1 Like

might be because you left your takeorder not capitalized… try takeOrder

2 Likes

Yeah but then I tried as you told …its not working

1 Like

Ok what is the problem now? Is it the same or different? If different tell me the full error :thumbsup:

2 Likes

its the same… it says the last takeOrder is not defined

1 Like

Ok well I was hoping it would be an easy fix but never seems to work out that way eh? haha Let me take another look at it

2 Likes

hahaha yeah… but pls help me out… else i’ll not be sleeping today:joy:

1 Like

Well thats a problem so I will look at it :stuck_out_tongue:

2 Likes

hey and sorry to bother you can you give me a link to the lesson you are on? I am having a hard time finding it in all the javascript lessons :blush:

2 Likes

Ok @ritu_rajesh after looking at your code and as long as you made the takeOrder change your code should pass fine… Now, I don’t have access to that particular Learn Javascript lesson because I have almost completed the old Javascript course and have not started the new Learn Javascript course so I could be missing something but I think it should pass based on my knowledge and testing in an empty Javascript lesson. Try refreshing your browser, clearing cookies, using a different internet browser to try and make the computer “realize” your code is correct haha

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.