... to use is the Composite pattern. Definition Directly from Wikipedia: The composite pattern describes a group of objects that is treated the same way as a single instance of the same type of object.
0 CommentsHoisting Hoisting is JavaScript's default behavior of moving declarations to the top. Given the following Javascript code, what is the expected output, and why? fcn2(); fcn1(); function fcn2(){ alert("hi"); } var fcn1 = function(){ alert("hey") } The expected output is a pop up alert that says "hi", followed by an error that fcn1 isn't defined.
0 Comments