News for hackers. Stuff that matters.
Re:What's New in JavaScript for 2019 by singularity2001 on Wednesday January 23, 2019 @07:38AM (#18977660)
Yes please make the syntax simple like this! Even cleaner:

  class fish {
     color = "blue";    
     private agenda = "World Peace"  
     constructor(){
           color="red"
           agenda="Secret World Domination"
     }
     reveal () {
       console.log(`I am a ${color} Fish seeking ${agenda}`)
     }
    }

There are no comments on this comment yet.