Merge pull request 'appending new text and cosole.log it' (#1) from feature/new_text into master

Reviewed-on: #1
This commit is contained in:
kfir 2023-09-11 13:40:26 +00:00
commit 7203b8f6b2

View file

@ -1,5 +1,7 @@
import { User } from "./types";
const text = "This is the new text";
function getFromDb(): User[] {
return [{
name: "kfir",
@ -10,9 +12,4 @@ function sendError(error: string): void {
throw new Error(error);
// This is the new master
}
const data = getFromDb();
const name = data[0].name;
const email = data[0].email;
console.log(data);
console.log(text);