---
title: "Discussion on \"🧠 What does new do in JavaScript?\" | Hashnode"
description: "Discussion on \"🧠 What does new do in JavaScript?\". The new keyword is used to create a new instance of an object or class.\nWhen you write:\nconst scene = new Scene(engine);\n\nYou are telling JavaScript:\n\n“Hey, create a new Scene object, and use the Scene constructor function to set it up.”\n\n\n.\n\n\n🔍 Why..."
url: "https://hashnode.com/posts/what-does-new-do-in-javascript/6800c5f8fc35b3342d1f27e7"
---

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

Discussion

# [🧠 What does new do in JavaScript?](https://computer-science.hashnode.dev/what-does-new-do-in-javascript?utm_source=hashnode&utm_medium=feed)

The new keyword is used to create a new instance of an object or class. When you write: const scene = new Scene(engine); You are telling JavaScript: “Hey, create a new Scene object, and use the Scene constructor function to set it up.” . 🔍 Why...

Apr 17, 2025 · 1 min read · computer-science.hashnode.dev  
Read the article

-   [#new](https://hashnode.com/tag/new)

## Written by

[Godson Prakasia](https://hashnode.com/@gp11)

@gp11

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

computer science

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
