Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
              
            
!

CSS

              
                
              
            
!

JS

              
                /* $CONCEPTUAL PATTERN$ */

const reference = _Object._method; // as if ^|reference = this;|^ where as |this === window| in JavaScript, right? – Same applied to _Class._method imaginary scenario !
reference() // we would get an error , because it refers to function's "this" ^in GLOBAL^ : this.reference() === window.reference() ,.. (see the next line)
/* (cont'd) ...we need explicitly declare (show) which function's LOCAL scope keyword "this" is coming from . Function is local-scoped by it's nature (by default) */
let reference_local = _Object._method.bind(_Object); // same if written as : reference.bind(_Object);
// From now on, no more of error should be expected via binded reference :
reference_local() // expected behaviour incoming from _Object._method (_function's) body

/* MORE PRACICAL SIDE OF $CONCEPTUAL PATTERN$ */

import { class_AAA as schoolers_AAA } from "./classes/Class_AAA.js"; // export { Class_AAA } within /Class_AAA.js
import { class_BBB as schoolers_BBB } from "./classes/Class_BBB.js"; // export { Class_BBB} within /Class_BBB.js

const aaa = new schoolers_AAA; // (parenthesis are optional , if no [Args] provided)
const bbb = new schoolers_BBB; // (parenthesis are optional , if no [Args] provided)

aaa.callback = bbb.callbackFuntionBody.bind(bbb); // Explanation line below :
/* Hereby .bind() comes in hand when we need to connect two (2) distinct objects (classes) , in this case , callback of class_AAA with callback's actual function body ...
(cont'd) ... that does reside in class_BBB */

// NOTICE : .bind() is applied only onto function (method), NOT onto functions's object (functional object i.e. class) itself !

// In conclusion : .bind() helps combine the functionality of the two functions that are related in behaviour i.e. puzzle parts of the same behaviour chain



              
            
!
999px

Console