DEV Community

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 ...
Collapse
 
andrewbrown profile image
Andrew Brown 🇨🇦

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);
Collapse
 
sherlockliu profile image
Sherlock

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

Collapse
 
borrellidev profile image
Piero Borrelli

Please contact me via pieroborrellidev@gmail.com so we can arrange this.

Collapse
 
sherlockliu profile image
Sherlock

That's OK