Build Your Own JavaScript DOM Library
About Lesson

In this session we will create our constructor function and attach to the global window object.

Step 2: Function definition and window

(function (window, undefined) {
  const= function (selector) {
  window.Q = Q;


Example : Test Code

‘q’ should be available in window object



Try out the code here

0% Complete