- add .gitignore - node modules - generated js files - add prettier and eslint configurations - prettier: some options configured - eslint: js linting disabled - initialize npm, install packages - add vscode settings - prettier formatting on save disabled
16 lines
513 B
TypeScript
16 lines
513 B
TypeScript
const name = 'Mikko'; // type is inferred as a string
|
|
let ageoftheknownuniverseandbeyond = 41; // type is inferred as a number
|
|
const rightHanded = true; // type is inferred as a boolean
|
|
|
|
ageoftheknownuniverseandbeyond = 12412432094509384890389045890389045890348905389045890308945034;
|
|
|
|
if (ageoftheknownuniverseandbeyond < 4223 && ageoftheknownuniverseandbeyond > 10)
|
|
console.log('jeeje');
|
|
|
|
if (name == 'Mikko' || name == 'Matti') {
|
|
console.log('jee');
|
|
}
|
|
console.log(ageoftheknownuniverseandbeyond);
|
|
|
|
export {};
|