Array.prototype code at 1:23

i am having a problem at the output of this code as i go live then there are some lines at the console

join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]

when i intitalize the code it shows always same

here is the code :

Array.prototype.joinOriginal = Array.prototype.join
Array.prototype.join = function () {
console.log(‘join called on’, this)
return this.joinOriginal(…arguments)
}

This code is not running, what’s the result you are trying to achieve, and what error you are facing? Please explain briefly

see here in this code we create a new function for name join and copying the original join into join original that means when i use join then is must work as a we declared the function but when i run it it works fine but it only throws these lines at the console:

join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]

i copied the same code as from the video but it shows the same

So that is correct output because you are logging console.log(‘join called on’, this) where “this” is the array

but in the lecture video there’s nothing like this output

Can you give me exact time at which point in video this is happening

this code starts at 1:20:30 in lecture 7

What is the array you are declaring?
Because this code is running perfectly:
Array.prototype.joinOriginal = Array.prototype.join
Array.prototype.join = function () {
console.log(‘join called on’, this)
return this.joinOriginal(…arguments)
}

let l = [12,12,23,4,4,43]
l.join(’,’)

Please make sure that you are not calling join in a for loop