Horje
Functions & Exec Context makePlans Code Example
Functions & Exec Context makePlans
So I managed to put 


    let friendsAvailable = true;

function makePlans(name) {
  // INSERT CODE HERE

  return callFriend(friendsAvailable, name);
            
}

function callFriend(bool, name) {
  // INSERT CODE HERE  
  if (bool) {
    return (`Plans made with ${name} this weekend`);
  } else  {
    return "Everyone is busy this weekend";
  }
}

// Uncomment these to check your work!
console.log(makePlans("Mary")) // should return: "Plans made with Mary this 
weekend'
friendsAvailable = false;
console.log(makePlans("James")) //should return: "Everyone is busy this weekend."




Javascript

Related
constant expression contains invalid operations laravel Code Example constant expression contains invalid operations laravel Code Example
toast not showing Code Example toast not showing Code Example
javascript factorial with closure Code Example javascript factorial with closure Code Example
forward propagation in NN Code Example forward propagation in NN Code Example
reactdomserver import Code Example reactdomserver import Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10