Skip to content
Snippets Groups Projects
Commit a000aae8 authored by BOGUET Thomas's avatar BOGUET Thomas
Browse files

Ex

parent 6257cae5
No related branches found
No related tags found
No related merge requests found
// exercice1
function deb1(): number {
let j = 200;
for (let i = 0; i < 10; i++) {
j -= 10;
}
return j;
}
console.log(deb1());
\ No newline at end of file
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Deno: Run exercice.ts",
"program": "${workspaceFolder}/exercice.ts", // Fichier TypeScript à exécuter
"cwd": "${workspaceFolder}",
"runtimeExecutable": "deno", // Utilise Deno comme exécutable
"runtimeArgs": [
"run",
"--inspect", // Active le débogage
"--allow-all" // Donne toutes les permissions (ajustez selon vos besoins)
],
"attachSimplePort": 9229
}
]
}
{
"compilerOptions": {
"target": "es6", // Specify ECMAScript target version
"module": "commonjs", // Specify module code generation
"strict": true, // Enable all strict type-checking options
"esModuleInterop": true, // Enable interoperability between CommonJS and ES Modules
"sourceMap": true // Generate source maps for debugging
},
"include": [
"./**/*.ts" // Include all TypeScript files in the project
],
"exclude": [
"node_modules", // Exclude node_modules folder
"**/*.exercice.ts" // Exclude test files
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment