diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..39944e4 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}\\src\\index.ts", + "outFiles": [ + "${workspaceFolder}/**/*.js" + ] + } + ] +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 0c3ffc1..25cb028 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,12 +2,12 @@ function DrawLine(count: number, countP: number){ const minimalString = '*'; const minimalP = ' '; - console.log(minimalP.repeat(countP)+minimalString.repeat(count)); + let result = minimalP.repeat(countP) + minimalString.repeat(count) + console.log(result); } let chisloN: number = 3; - //i++ => i = i + 1 //i-- => i = i - 1 //--i => i = i - 1 diff --git a/tsconfig.json b/tsconfig.json index fae2faf..9fb8514 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,6 +21,7 @@ "strict": true, /* Enable all strict type-checking options. */ "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ /* Completeness */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ + "skipLibCheck": true, /* Skip type checking all .d.ts files. */ + "sourceMap": true } }