Doubt again


#1

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


#2

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


#3

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!!!


#4

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


#5

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


#6

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


#7

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


#8

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


#9

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


#10

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


#11

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:


#12

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


#13

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