From 93818a519c9d5f85030f5749bb98b7e465c724a8 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Mon, 11 Sep 2023 16:32:49 +0300 Subject: [PATCH] appending new text and cosole.log it --- src/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 014a4f5..16b454f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,7 @@ import { User } from "./types"; +const text = "This is the new text"; + function getFromDb(): User[] { return [{ name: "kfir", @@ -9,9 +11,4 @@ function getFromDb(): User[] { function sendError(error: string): void { throw new Error(error); } - - -const data = getFromDb(); -const name = data[0].name; -const email = data[0].email; -console.log(data); +console.log(text); \ No newline at end of file