You are on page 1of 14

JavaScript’s new

OLD SCHOOL
programming

Let’s TypeScript !
@Srushtika | FrontConf Munich ‘17
@Srushtika
n.srushtika@gmail.com

Hi!
I’m Srushtika
Developer Evangelist
Srushtikas-Air:Downloads srushtika$ node hello.js
/Users/srushtika/Downloads/hello.js:2
console.log(customer_name.toLowerString())
^

TypeError: customer_name.toLowerString is not a function


at Object.<anonymous> (/Users/srushtika/Downloads/hello.js:2:18)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3

@Srushtika | FrontConf Munich ‘17


Srushtikas-Air:Downloads srushtika$ node hello.js
/Users/srushtika/Downloads/hello.js:2
console.log(customer_name.toLowerString())
^

TypeError: customer_name.toLowerString is not a function


at Object.<anonymous> (/Users/srushtika/Downloads/hello.js:2:18)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:980:3

var customer_name = 222


console.log(customer_name.toLowerString())
@Srushtika | FrontConf Munich ‘17
JAVASCRIPT
Hipster much?
@Srushtika | FrontConf Munich ‘17
TypeScript, FTW!

@Srushtika | FrontConf Munich ‘17


@Srushtika | FrontConf Munich ‘17
How to TypeScript?

@Srushtika | FrontConf Munich ‘17


TYPES

@Srushtika | FrontConf Munich ‘17


INTERFACES

@Srushtika | FrontConf Munich ‘17


CLASSES and OOP

@Srushtika | FrontConf Munich ‘17


ARROW
FUNCTIONS
@Srushtika | FrontConf Munich ‘17
Why TypeScript?

@Srushtika | FrontConf Munich ‘17


Thankyou!
@Srushtika | FrontConf Munich ‘17

You might also like