Functions

Description (MDN) - Used to perform specified instructions

const myDetails = {
         name : "javascript"
}

function sayMyName(detailsObj){               //function taking 1 argument
return detailsObj.name;
}

console.log(sayMyName(myDetails));         //calling function with myDetails

Discussion
Phan😉

Phan😉 4:14 PM, Tuesday 8th Dec, 2020

Thats all🤔

1

Naman Gupta

Naman Gupta 12:02 PM, Saturday 12th Dec, 2020

Hey. I have covered just the basics in this codelab. That was the aim. 😊