Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const name = "bye"
- var student = {
- name: "shopnil",
- age : {
- name: "iftekhar",
- intro :function(){
- this.name = "hello"
- function funcTwo () {
- // this.name = "func"
- function funcThree () {
- function funcFour () {
- function func() {
- console.log(`${this.name}`);
- }
- return func
- }
- return funcFour
- }
- return funcThree
- }
- return funcTwo;
- }
- }
- }
- student.age.intro()()()()()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement