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 6851555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:15:44+00:00 2026-05-27T01:15:44+00:00

My understanding of the Javascript so far has been that it is a client-side

  • 0

My understanding of the Javascript so far has been that it is a client-side language that capture events and makes a web-page dynamic.

But on reading the comparison between MongoDB, and CouchDB (http://www.mongodb.org/display/DOCS/Comparing+Mongo+DB+and+Couch+DB ) I noticed that both are using JS. This makes me wonder the reason behind the choice of JS over other conventional languages.

I guess I am trying to understand the role of JS and its advantages over other languages.

Update: I am not asking about the languages/drivers supported by the two dbs. The comparison says–“Both CouchDB and MongoDB make use of Javascript. CouchDB uses Javascript extensively including in the building of views ….MongoDB also supports running arbitrary javascript functions server-side and uses javascript for map/reduce operations.”

My lack of understanding pertains to why is JS being used at all for the backend work. Why is it preferred for building views in CouchDB, or for using map/reduce operations? Why C/C++ or Java were not used? What are the advantages in using JS for such back-end work?

Answer:To summarize answers on https://softwareengineering.stackexchange.com/q/121411/41398 . MongoDB and other NoSQL dbs are using SpiderMonkey to execute server-side JS functions. Here is the wikipedia’s link to spidermonkey- http://en.wikipedia.org/wiki/SpiderMonkey_(JavaScript_engine)

PS: If somebody feels like down-voting the question, please do put a comment to explain the reason.

  • 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-05-27T01:15:45+00:00Added an answer on May 27, 2026 at 1:15 am

    Because it’s the language they chose?

    • It’s (reasonably) dynamic.
    • Functions can be passed around.
    • Open, embeddable implementations exist.
    • It’s ubiquitous.
    • Using JSONy data model.

    There aren’t a lot of great options for “live” evaluation (IMO): Lua, Scheme-y things, and JS are probably the best choices for C programs.

    If it had been written in Java, there is a default scripting layer “built in”.

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

Sidebar

Related Questions

I have a pretty good understanding of Javascript, except that I can't figure out
My understanding is that in order to return a complex PHP variable to Javascript,
Basically, my understanding of the process so far is that I choose a modulus
I have always thought of JavaScript as a client-side scripting tool for augmenting the
Understanding that if someone had JavaScript disabled the site would not work then is
It's my understanding SharePoint 2010 has introduced a new JavaScript API, a brand new
Every page on my site has multiple body classes that I use CSS selectors
Perhaps I am missing something, but I am just learning javascript. My understanding of
Understanding that I should probably just dig into the source to come up with
My understanding of Hibernate is that as objects are loaded from the DB they

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.