This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // CLASSES PROJECT | |
| // In this project, you will build a Mazda car factory that manufactures both cars and trucks. | |
| // Read each set of instructions carefully! | |
| // BUILD YOUR FACTORY! | |
| // DECLARE A FACTORY CLASS | |
| // All automobiles manufacutered should have the following properties: make (Mazda), location (USA), airbags (true), abs (true), warranty (60,000 miles / 3 years) | |
| // This factory should also run two functions: massBuild() and customerBuild() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // ################################################################### | |
| // __ | |
| // ____/ /___ ____ ______ | |
| // / __ / __ \/ __ `/ ___/ | |
| // / /_/ / /_/ / /_/ (__ ) | |
| // \__,_/\____/\__, /____/ | |
| // /____/ | |
| // Dog Constructor & Prototype | |
| function Dog (status, color, hungry) { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | create table todos ( | |
| id serial primary key, | |
| title varchar(255) not null, | |
| details text, | |
| priority integer not null default 1, | |
| created_at timestamp not null, | |
| completed_at timestamp | |
| ); | |
| insert into todos (title, details, priority, created_at) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // 1. | |
| // Without logging the values, list the value of `sports` and `total` | |
| var sports = ['soccer', 'baseball']; | |
| var total = sports.push('football', 'swimming'); | |
| // A: | |
| // sports = ['soccer', 'baseball', 'football', 'swimming'] | |
| // total = 4 | |
| // 2. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // 1. | |
| // Define a function max() that takes two numbers as arguments and returns the largest of them. Use the if-then-else construct available in JavaScript. | |
| // A: | |
| function max(numOne, numTwo){ | |
| if(numOne > numTwo) { | |
| return numOne; | |
| } else { | |
| return numTwo; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Answer the following questions in this file using comments without running the code | |
| // 1. | |
| // What does `givenName` equal right now? | |
| var givenName; | |
| // A: | |
| // undefined | |
| // 2. | |
| // What is `givenName` set to right now? | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| COLORS | |
| Pink : #ffdddd | |
| Purple : #ddddff | |
| Green : #ddffdd | |
| Blue : #ddffff | |
| Yellow : #ffffdd | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | * { | |
| box-sizing: border-box; | |
| margin: 0 auto; | |
| } | |
| img { | |
| max-width: 100%; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| font info: | |
| family - Helvetica, Arial, sans-serif | |
| line-height - 1.6 | |
| colors: | |
| light gray - ##eee | |
| gray - #dddddd | |
| yellow - #ffd24a | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | *, *:before, *:after { | |
| box-sizing: border-box; | |
| } | |
| * { | |
| margin: 0 auto; | |
| padding: 0; | |
| border: 0; | |
| outline: 0; | 
NewerOlder