201 - Closure Modules Inline

by steen_hansen

HTML

<!DOCTYPE html><meta charset="utf-8" />
<title>201 Closure Modules Inline</title>


  
<div id='js-div' style="width:60%; " class='code-scroll'>
  <a href='https://github.com/steenhansen/type-czech'  target="_blank" class='git-hub'>GitHub Package</a>
  <div id='js-code'>the javascript</div>
</div>


<div id="the-explanation" style="width:40%" >
  <div class='an-explantion'>201 - Closure Modules Inline</div>
  <div id='explanation-text'>
    
    
    
    
    
    <br>
    TypeCzech's general example of an author where:
    <ul>
      <li><b>First</b> controls an author's first name</li>
      <li><b>Last</b> handles an author's first and last name</li>
      <li><b>Full</b> deals with an author's salutation, first, and last name</li>    
      <li>Safely removable supporting TypeCzech test code begins with /**/</li>    
    </ul>

    Closures are used for inheritance:
        <ul>
          <li>All JavaScript is in one file, no code imports</li>
          <li>Production class declarations <b>must</b> interleave with TypeCzech calls
              to have the PRE and POST checking functions be correctly linked to before use </li>
          </ul>
  
    CONS is short for a constructor call, while PRE and POST match PRE_check() and POST_Check() 
    function execution.




  </div>


  <div id="console-log"  >
    <div class='a-title'>Console Output</div>
    <div id='log-text'></div>
  </div>

  <br><br>















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