In the realm of JavaScript, there exists a class that seeks to 'inherit' various objects and their methods.
var A = function (a,c){};
var N = {
properties1: function(){};
};
var M1 = {
properties2: function(){};
};
var M2 = {
properties3: function(){};
};
The question at hand is how to make sure that 'A', as an heir, inherits from 'N', 'M1', 'M2', and possibly more objects like 'M10'...
A.prototype = Object.assign(N, M1, M2);
Despite attempts made, the desired inheritance structure does not seem to be taking effect. How can such a complex event structure in JavaScript be successfully implemented?