Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

this keyword in javscript

const user = {
    name: 'Mike';
    call() {
        console.log(this);
    }
}
user.call();

// ⚙️ Output: {name: 'Mike, call: f}
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #keyword #javscript
ADD COMMENT
Topic
Name
1+4 =