Distinctions
function main() {
const str = "Hello"
// this
str.runIt(function () {
console.log(`The string's length: ${this.length}`)
} );
// it
str.letIt(it => {
console.log(`The string's length: ${it.length}`)
})
}Last updated