From 6084ed20b9e5ef4ef507d83c5c6ee3f063acce7a Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 22 Jul 2024 11:54:00 +0800 Subject: [PATCH] Mon Jul 22 11:54:00 CST 2024 inscode --- .inscode | 6 +++++- index.js | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.inscode b/.inscode index ecc8bdd..e177731 100644 --- a/.inscode +++ b/.inscode @@ -1,6 +1,10 @@ run = "npm i && npm run dev" +language = "node" [env] PATH = "/root/${PROJECT_DIR}/.config/npm/node_global/bin:/root/${PROJECT_DIR}/node_modules/.bin:${PATH}" XDG_CONFIG_HOME = "/root/.config" -npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" \ No newline at end of file +npm_config_prefix = "/root/${PROJECT_DIR}/.config/npm/node_global" + +[debugger] +program = "main.js" diff --git a/index.js b/index.js index 2d7e683..8dac7cb 100644 --- a/index.js +++ b/index.js @@ -1 +1,12 @@ -console.log("欢迎来到 InsCode"); \ No newline at end of file +function fibonacci(n) { + if (n <= 1) { + return n; + } else { + return fibonacci(n - 1) + fibonacci(n - 2); + } + } + + // 测试代码 + for (let i = 0; i < 100; i++) { + console.log(fibonacci(i)); + } \ No newline at end of file -- GitLab