Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9248995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:05:06+00:00 2026-06-18T10:05:06+00:00

I am creating a node.js based website where I ask users to fill forms

  • 0

I am creating a node.js based website where I ask users to fill forms with large number of details, so each one of them becomes a parameter.

The way I have written the code is that I keep passing these parameters from one function to another. I think these parameters go through at least 4 functions as my code has gotten obnoxious about separate model and controller.

My question is what is the cost of passing so many parameters in JavaScript. Will they pass my parameters around as some reference / pointer or the entire object will get copied. I really do not want the entire object to be copied because some of the parameters can contain large amount of text or digital information.

Is there any known source of information about this? First 5 results on google didn’t yield useful results.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:05:07+00:00Added an answer on June 18, 2026 at 10:05 am

    Objects are not copied. Semantically speaking, references to the objects are copied, but internally that will not even happen until you alter them (see http://en.wikipedia.org/wiki/Copy-on-write).

    Argument passing in javascript by itself is incredibly cheap since there is no type checking or checking for required parameters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can I show users success/error messages without creating a node for it? Thanks
I'm creating a node based web CMS system in asp.net mvc. Having read some
I'm working on a project (creating a browser based check list). One of my
I'm creating an application in Node that has some CRUD components. On one of
I have a taxonomy attached with my content type. While creating node of that
I am creating a Node.js app on Heroku and have run into an issue.
I am creating a node by using crrm as below $(#TreeDiv).jstree(create, $(#somenode), inside, {
I'm using drupal 7.x and am creating a node content-type template. My content type
When creating a trivial Arbor JS graph with a single node, the node jitters
I've been developing in Node.js for only 2 weeks and started re-creating a web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.