42 - Extended Objects

by steen_hansen

HTML

<!DOCTYPE html><meta charset="utf-8" />
<title>42 Extended Objects</title>



<div>

        <div  style="width:85%; float:left">
            <div class='an-explantion' style='background-color:#ffffff;'>42 - Extended Objects</div>

          <p>
            The examples 101 to 605 all model a person's name with extended objects. The entities are First, Last, and Full names.
            With each entity also having an associated method; firstMethod(), lastMethod(), and fullMethod().
            
            Full inherits behavior from Last, while Last builds on First.
            
            
            The extended objects can be classes, closures, IIFEs, 
            classFree objects, prototypes, or OLOOs. The examples of 105,205,305,405,605 are 
            in /examples-node.js/ as they can only be run in Node.js.
            
            </p>
          
            <p>
              Checking functions can be toggled on and off with either the inclusion of 
              TypeCzech.js or a boolean variable.
            </p>
            
            <p>
              Each function, method, or constructor has its own PRE_checking and POST_checking functions. 
            </p>
            
            <p>
              There is no 104 example, as this would be a blizzard of if statements because classes are not hoisted 
              and would have to be interleaved with TypeCzech checking functions that in turn would have to be
              togglable.
            </p>
        </div>


        <div  style="width:15%; float:right">















                  <!--            -----------------TYPE 6------------------------       -->
                  <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/steenhansen/type-czech@latest/web-resources/type-czech.css">
                  <!--            ------------------TYPE 6------------------------       -->
                  <div id='js-fiddles'>
                    <a title="Example-Contents"...