closes #483 A major refactoring of the intro chapters includes text revision and the addition of "module" as an 8th "basic building block". Incorporates John Papa feedback.
		
			
				
	
	
		
			11 lines
		
	
	
		
			149 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			149 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export class Hero {
 | |
|   id:number
 | |
|   constructor(
 | |
|     public name:string,
 | |
|     public power?:string){
 | |
|       this.id = nextId++;
 | |
|     }
 | |
| }
 | |
| 
 | |
| var nextId = 1;
 |