appending new text and cosole.log it #1

Merged
kfir merged 1 commit from feature/new_text into master 2023-09-11 13:40:27 +00:00

View file

@ -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);