I am a javascript novice and I don't understand why 'this' is used as a parameter alongside the actual parameter for calling a prototype... In the image provided you can see an example of its use. So why is it necessary to add 'this' as a parameter? What does it do exactly?
'use strict';
function Animal(voice){
this.voice = voice || 'grunt'
}
Animal.prototype.speak = function(){
display(this.voice)
}
function Cat(name, color){
Animal.call(this, 'Meow')
this.name = name
this.color = color
}
Cat.prototype = Object.create(Animal.prototype)
var Fluffy = new Cat('Fluffy', 'White')
Fluffy.speak()