0

How can I? Homework help?

wondering if I coud find a homework buddy or someone better at javascript than I am. I've started my code and would love to share it with someone who can help me write my code and help me understand. No I don't want the answer given to me. Thanks a bunch Create a function named createCourse that should: take three arguments that will define course properties: title (string). duration (string). students (array). return an object that has each property assigned its proper value. For example:// returns {title: 'coding camp', duration: '10 weeks', students: ['Carl', 'Jane', 'Cin']} Create a function named formLetter that should: take one argument, a letter, which has three properties: recipient, sender, and msg. combine the three properties into a single string with an additional greeting and closing. insert additional new lines between the greeting, message, and signature. For example: // returns "Hello Tasha!,\n\nHow are you?\n\nSincerely,\nTasha"

21st Jul 2018, 8:00 PM
Tasha
Tasha - avatar
13 ответов
+ 1
Oh I see sorry about that. Thank you for letting me know. I have done that now. Here is the link. https://code.sololearn.com/WM1CaxbV486B/#js
21st Jul 2018, 11:23 PM
Tasha
Tasha - avatar
+ 1
I have to check on that. I just realied it says “additional”. let me check on that. i apprexiate you looking at my code
22nd Jul 2018, 1:47 AM
Tasha
Tasha - avatar
+ 1
Hi thank you for explaining that! I see that I was pretty close. I thought I had o reiterate at the return. For the second function I am trying to figure out how to add "Hello" and "Sincerely". Im thinking I can add it in the curly brackets. I have updated my code to share. https://code.sololearn.com/WM1CaxbV486B
22nd Jul 2018, 3:07 PM
Tasha
Tasha - avatar
+ 1
Tasha 👏👏👏 I like who try to understand and not only copy other code... Anyway you have need some feedback for see what rerurn your function... Use console.log var result= formLetter({ recipient: "Tasha", sender: "Ava", msg: "Hello, How are you today?" }); console.log(result);
22nd Jul 2018, 3:12 PM
KrOW
KrOW - avatar
+ 1
Thank you! I really appreciate it! This is all new to me and I just keep pushing through trying my best for a very long time before asking for help. I enjoy the plethora of resources, sometimes it' just nice to be be able to work through it with someone as well.
22nd Jul 2018, 3:24 PM
Tasha
Tasha - avatar
0
What you dont can do in YOUR homework? Can you post your current work?
21st Jul 2018, 10:40 PM
KrOW
KrOW - avatar
0
@krOW Im sorry I dont understand what you mean by " What you dont can do in YOUR homework? ", doesn't make much sense. But here is my code that Im working on so far in codepen... var createCourse = function (Title, Duration, Students)){ var course = { title: "ProgramTitle", duration: "ProgramDuration", students: "ProgramStudents", } return course "title" = 'Full Stack Engineering'; course "duration" = '4 weeks'; course "students" = [Rob, Time, Joe]; }; var formLetter = function (){ var letter = { recipient: Tasha, sender: Me, msg: "Hi how are you today?", } return letter "recipient" = 'Tasha'; letter "sender" = '4 weeks'; letter "msg" = ( "Hi How are you today"); }; return is very tricky for me but Im trying to work through it
21st Jul 2018, 10:52 PM
Tasha
Tasha - avatar
0
Tasha I asked you what you dont knowed for complete your assignement... Anyway your code seem with errors on return.... Next you have to know that you can save your codes on SL in 'Code Playground' section then post here his url so we can help you better
21st Jul 2018, 11:15 PM
KrOW
KrOW - avatar
0
Tasha I have not understanded the second function what must do... It get an object with recipienrs, sender and msg properties but what are greetings and closing? Can you make a better example?
21st Jul 2018, 11:42 PM
KrOW
KrOW - avatar
0
While you dont tell me what second function must to do i cannot help on it
22nd Jul 2018, 11:53 AM
KrOW
KrOW - avatar
0
Thank you , this is really tough for me. My hea hurts everyday after sevral hours of trying to figure it out. I think I got it. When my message was returning it had two "hello" so I removed it from my return and got the message I was looking for
22nd Jul 2018, 3:17 PM
Tasha
Tasha - avatar
0
The important its keep learning and not stop... Though you have not asked, i suggest you to bookmarks this https://code.sololearn.com/WaVusr8J1KvK/?ref=app where you can find useful programming web resources... I dont want spam but you are one of few users that tried to do all by itself and this make me belive that you want learn and this is my way to help
22nd Jul 2018, 3:22 PM
KrOW
KrOW - avatar
0
Tasha 👍👍👍
22nd Jul 2018, 3:25 PM
KrOW
KrOW - avatar