---
title: "Discussion on \"basic node js\" | Hashnode"
description: "Discussion on \"basic node js\". in basic node js we just create routes and send the response\nimport express from 'express';\nimport dotenv from 'dotenv';\nimport newAssign from './newServer.js';\nimport new1Assign from './new1assign.js';\n\nconst app = express();\ndotenv.config({\n      p..."
url: "https://hashnode.com/posts/basic-node-js/65b8fffee267a75fc776b6fe"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [basic node js](https://garryghuge.hashnode.dev/basic-node-js?utm_source=hashnode&utm_medium=feed)

in basic node js we just create routes and send the response import express from 'express'; import dotenv from 'dotenv'; import newAssign from './newServer.js'; import new1Assign from './new1assign.js'; const app = express(); dotenv.config({ p...

Jan 30, 2024 · 2 min read · garryghuge.hashnode.dev  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#router](https://hashnode.com/tag/router)
-   [#hiteshchaudhary](https://hashnode.com/tag/hiteshchaudhary)
-   [#hiteshchoudharylco](https://hashnode.com/tag/hiteshchoudharylco)

## Written by

[Gaurav Ghuge](https://hashnode.com/@gauravghuge)

@gauravghuge · Aurangabad, India

  
[View profile](https://hashnode.com/@gauravghuge)

Full stack web developer

i am student from the bsc computer science in 2nd year and i completed full stact web developer course and mern stack developer

## Responses 1

Markdown supported · ⌘↵ to post

[SHRIVATSA D DESAI](https://hashnode.com/@ShrivatsaDesai54)

[Jan 31, 2024](https://hashnode.com/posts/basic-node-js/65b8fffee267a75fc776b6fe/comment/65ba7d82cdceaf6ba05432b2)

Got to know that there is import statement, I have been using just `const express = require('express');`

[Jan 31, 2024](https://hashnode.com/posts/basic-node-js/65b8fffee267a75fc776b6fe/comment/65ba7d82cdceaf6ba05432b2#reply-65ba7f6c42251f142ff15fca)

we can use both statements but the import statements are easy to use and simple statements
