- learnt about
extends, which inherits properties of all the previous classes.
class Fish extends Ball{
// no need to write constructor also; it creates a ball until i cash fish.method from fish.
}if you add a constructor, you can call super(params) to get parent to process all the incoming parameters.
spoke about emitters.
spoke about anonymous functions ()=>:
something.forEach((particle) => {
particle.run();
})watched this:
!!something will turn something into a boolean.