Fucntions


#1

I don’t know how to do this, someone help! Im sitting here in class, i’m gonna get an F soon :frowning: please help, how do i do this. :thinking:


#2

We can only advise when we know what exercise you are having trouble with. Please post a link to the lesson, any error messages you are receiving and your attempted code. Thanks.


#3

https://www.codecademy.com/courses/learn-javascript-functions/lessons/functions/exercises/functions?action=resume_content_item&course_redirect=introduction-to-javascript


#4

Have you done the first instruction?

Start by writing a function using the keyword const and the name takeOrder. Then set the variable = to a set of parentheses followed by an arrow () =>. Inside of its block {}, use console.log() to print ‘Order: pizza’.


#5

hmmmm ill try and do this


#6

Recall that set to means to assign a value to, and the assignment is from right to left

n = 42

In the above, 42 (a number) is assigned to n (a variable). n is set to 42.

console.log(n)    //  42

#7

ohhhh I get it, after a few attempts I got it right! Thank You!


#8

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