(name, shirt)
| 179 | // template literals |
| 180 | // methods Math.floor() |
| 181 | const 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')) |
nothing calls this directly
no outgoing calls
no test coverage detected