Created
July 2, 2025 11:49
-
-
Save iamryanyu/dc3eb7d51c5f3385babacd2c7504aad8 to your computer and use it in GitHub Desktop.
call() apply() bind()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const javascript = { | |
| language: 'js', | |
| title: 'JavaScript Crash Course', | |
| students: [], | |
| enrol(studentId, name) { | |
| this.students.push({ | |
| course: this.language, | |
| id: studentId, | |
| name, | |
| }); | |
| }, | |
| }; | |
| const react = { | |
| language: 'react', | |
| title: 'React Crash Course', | |
| students: [], | |
| }; | |
| const enrol = javascript.enrol; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment