Files
ts-configuration/main.ts
borb 07faf3c274 initial commit
- 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
2025-09-23 15:26:20 +03:00

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 {};