Following are the key points described later in this article:
Use the instructions on following page to setup the TypeScript development environment. Docker – How to setup Typescript Development Environment
interface Person {
firstname: string;
lastname: string;
}
function hello(person: Person) {
return "Hello, " + person.firstname + " " + person.lastname;
}
var calvin = {firstname: "Calvin", lastname: "Hobbes"};
var chris = {firstname: "Chris", lastname: ""};
console.log(hello(calvin));
console.log(hello(chris));
Name the above program as “hello.ts”. Compile it using the command, “tsc hello.ts”. It would create the file “hello.js”. Execute the “hello.js” using node runtime using following command:
node hello.js
It would print following:
Hello, Calvin Hobbes
Hello, Chris
When building a Retrieval-Augmented Generation (RAG) application powered by Large Language Models (LLMs), which combine…
Last updated: 25th Jan, 2025 Have you ever wondered how to seamlessly integrate the vast…
Artificial Intelligence (AI) agents have started becoming an integral part of our lives. Imagine asking…
In the ever-evolving landscape of agentic AI workflows and applications, understanding and leveraging design patterns…
In this blog, I aim to provide a comprehensive list of valuable resources for learning…
Have you ever wondered how systems determine whether to grant or deny access, and how…