A Complete Introduction Guide To TypeScript

Piero Borrelli on May 07, 2019

As the power of TypeScript has been rising during the last few years, thousands of developers decided to start using this Javascript superset to ... [Read Full]
markdown guide
 

By adding three backticks followed by ts you can colourize your code in this article which will improve readability.

class Animal {
    move(steps: number = 0) {
        console.log(`Animal moved ${steps}m.`);
    }
}

class cat extends Animal {
    meow() {
        console.log('Meow');
    }
}

const cat= new Cat();
cat.meow();
cat.move(1000);
 

Hey, Do you mind I translate your article to Chinese ?, I promise I'll paste the original URL and recommend your blog.

 
code of conduct - report abuse