MCPcopy Create free account
hub / github.com/CleverProgrammers/JavaScript-Course-by-Clever-Programmer- / introducer

Function introducer

playground.js:181–195  ·  view source on GitHub ↗
(name, shirt)

Source from the content-addressed store, hash-verified

179// template literals
180// methods Math.floor()
181const introducer = (name, shirt) => {
182 const person = {
183 name: name,
184 shirt: shirt,
185 assets: 100000,
186 liabilities: 50000,
187 netWorth: function() {
188 return this.assets - this.liabilities
189 }
190 }
191
192 const intro = `Hi, my name is ${person.name} and the color of my shirt is ${person.shirt} and my net worth is $${person.netWorth()} USD`
193
194 return intro
195}
196
197// console.log(introducer('Qazi', 'black'))
198// console.log(introducer('Leonardo', 'white'))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected