How to import prompt()?

This page summarizes the projects mentioned and recommended in the original post on /r/learnjavascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • node

    Node.js JavaScript runtime ✨🐢🚀✨

  • prompt() is a Web API. The Web API is implemented by browsers that run JavaScript and prompt() is available as a global (no import needed) in those browsers. JavaScript isn't limited to browsers, however, and other runtimes exist that run in other environments. NodeJS (NodeJS) is the most popular, but it does not implement the Web API and instead has its own set of APIs that are specific to running JavaScript on the desktop. This is what onecompiler.com uses. You can see that running the following on onecompiler:

  • qjs-modules

    Some modules for QuickJS (mmap, inspect)

  • Technically you can create a C shared object and import that shared object into QuickJS, see https://github.com/rsenn/qjs-modules, also https://github.com/second-state/wasmedge-quickjs.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • wasmedge-quickjs

    A high-performance, secure, extensible, and OCI-complaint JavaScript runtime for WasmEdge.

  • Technically you can create a C shared object and import that shared object into QuickJS, see https://github.com/rsenn/qjs-modules, also https://github.com/second-state/wasmedge-quickjs.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts