showing results for - "functions 26 exec context makeplans"
Louis
13 Aug 2019
1So I managed to put 
2
3
4    let friendsAvailable = true;
5
6function makePlans(name) {
7  // INSERT CODE HERE
8
9  return callFriend(friendsAvailable, name);
10            
11}
12
13function callFriend(bool, name) {
14  // INSERT CODE HERE  
15  if (bool) {
16    return (`Plans made with ${name} this weekend`);
17  } else  {
18    return "Everyone is busy this weekend";
19  }
20}
21
22// Uncomment these to check your work!
23console.log(makePlans("Mary")) // should return: "Plans made with Mary this 
24weekend'
25friendsAvailable = false;
26console.log(makePlans("James")) //should return: "Everyone is busy this weekend."
27
similar questions
queries leading to this page
functions 26 exec context makeplans