Hello World

ยท

2 min read

Hello there ๐Ÿ‘‹

Thanks for stopping by and welcome to my blog.

My name is Joseph Maina, a full-stack web developer and technical writer. I will share tips and tricks on software development and writing technical documents.

I will help you get from zero to (almost) a hero in developing customer-focused solutions. And writing documents that will help your customers consume your products. My main tech stack is TypeScript, React, Next.js, Tailwind CSS, and MongoDB.

What projects are you working on? Please talk to me if you need help with any part of your project.

Thank you for being here. For updates and more content follow me on Twitter @JosephMainaDev.

Before you go ...

Are you learning how to code? The first task will likely be a hello world program.

Here is a sample:

// define your function
const hello = (name: string = 'world'): string => {
  return `Hello ${name}!`;
}

A lot is going on in this snippet of TypeScript code. First, we declare a variable hello which is an arrow function that takes one optional argument name of type string. The function argument has a default value of world. This function should return a string.

// call the function
console.log(hello());

// try it by changing 'NAME' to your name
console.log(hello('NAME'));

Then, we call the function. If you don't pass any argument to the function, the return string will default to Hello world. Otherwise, the output will be Hello NAME. NAME is the argument you pass to the hello function.

Whoa ๐Ÿ˜ฒ! Too much for a test drive.

Leave your comments on my first post and follow me for more content.

ย