javascript tuts

classes:

var books = ['book stuff', 'more book', 'words', 'illegible words',]

 class Book {
   constructor(book){
     this.content = book
   }
   print(){
     console.log( 'I am a book !', this.content )
   }
 }
 for( var i = 0; i < books.length; i++ ){
   var new_book = new Book( books[i] )
   new_book.print()
   // do stuff with new_book
 }
oko
friend