---
title: "Sairaj (@sairaj) | Hashnode"
description: "Developer. Read the latest articles by Sairaj on Hashnode."
url: "https://hashnode.com/@sairaj"
---

@sairaj

# Sairaj

@sairaj · Joined May 2021

Developer

### [Understanding toFixed and toPrecision number methods in Javascript](https://blog.sairaj.me/understanding-tofixed-and-toprecision-number-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

Introduction I was building a cart page recently where I have to show the total cost of all the products which includes tax and delivery charges and then I saw something like this... And after seeing the value of tax I was like... So the next thoug...

5 min read · [blog.sairaj.me](https://blog.sairaj.me/understanding-tofixed-and-toprecision-number-methods-in-javascript?utm_source=hashnode&utm_medium=feed)

[Jan 3, 2022](https://hashnode.com/posts/understanding-tofixed-and-toprecision-number-methods-in-javascript/61d2c9ba7a190f6c0c3ab19a)

### [What does this \_\_dirname even mean?](https://blog.sairaj.me/what-does-this-dirname-even-mean?utm_source=hashnode&utm_medium=feed)

You might have seen this guy \_\_dirname a couple of times, maybe in a webpack config like this const path = require('path'); module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(\_\_dirname, ...

3 min read · [blog.sairaj.me](https://blog.sairaj.me/what-does-this-dirname-even-mean?utm_source=hashnode&utm_medium=feed)

[Oct 11, 2021](https://hashnode.com/posts/what-does-this-dirname-even-mean/616430d418374f25732746f4)

### [Implementing Infinite scroll using NextJS, Prima, and React-Query](https://blog.sairaj.me/implementing-infinite-scroll-using-nextjs-prima-and-react-query?utm_source=hashnode&utm_medium=feed)

Intro Hello everyone, in this article lets see how can we build an infinite scroll UI pattern using NextJs, Prisma, and React-Query Final result TLDR: Link to code TTLDR: Link to video Project setup Open an empty folder in your preferred editor and ...

6 min read · [blog.sairaj.me](https://blog.sairaj.me/implementing-infinite-scroll-using-nextjs-prima-and-react-query?utm_source=hashnode&utm_medium=feed)

[Sep 21, 2021](https://hashnode.com/posts/implementing-infinite-scroll-using-nextjs-prima-and-react-query/6149e1c8699fe76cd34868c4)

### [How I automated my C++ code compilation using NodeJS?](https://blog.sairaj.me/how-i-automated-my-c-code-compilation-using-nodejs?utm_source=hashnode&utm_medium=feed)

Inspiration I was doing a little competitive coding just to taste that side of computer science, although being a passionate web enthusiast, one thing that made me frustrated more than Dynamic Programming is, we need to compile the code and execute i...

2 min read · [blog.sairaj.me](https://blog.sairaj.me/how-i-automated-my-c-code-compilation-using-nodejs?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/how-i-automated-my-c-code-compilation-using-nodejs/61238341663d427e19ff7d0f) [Aug 23, 2021](https://hashnode.com/posts/how-i-automated-my-c-code-compilation-using-nodejs/61238341663d427e19ff7d0f)
