473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Interactive JavaScript interpreter anywhere?


Is there a nice interactive JavaScript interpreter, analogous to
Python's or Perl's (perldb)? I'm looking for something for Linux,
and that supports readline. I want to be able to try out small
snippets of JavaScript code without having to rely on a browser.

Many thanks!

-bill

Jul 23 '05 #1
2 3436
On Sat, 3 Jul 2004 20:50:45 +0000 (UTC), bill <pl*********@nomail.edu>
wrote:

Is there a nice interactive JavaScript interpreter, analogous to
Python's or Perl's (perldb)? I'm looking for something for Linux,
and that supports readline. I want to be able to try out small
snippets of JavaScript code without having to rely on a browser.

Many thanks!

-bill


I'm not familiar with a readline function in Javascript. But there is
a limited functinality for testing code in the Netscape/Mozilla
Javascript Console. It's under Tools->Web development

Myron Turner

Myron Turner
www.room535.org
Jul 23 '05 #2


bill wrote:
Is there a nice interactive JavaScript interpreter, analogous to
Python's or Perl's (perldb)? I'm looking for something for Linux,
and that supports readline. I want to be able to try out small
snippets of JavaScript code without having to rely on a browser.


If you download a Mozilla zip build from http://www.mozilla.org/ you get
the XPCOM shell (xpcshell) I think (I have it here under Windows, hope
they build on LINUX too), it is interactive and allows you to run
scripts using Spidermonkey, the JavaScript engine of Mozilla. Example:

js> var a = ["Kibology", "for", "all"];
js> a.join(" ")
Kibology for all
js>

I don't think however it has any readline.

You can also get the source of Spidermonkey from http://www.mozilla.org/
and build it, it also has a shell I think.

But of course you need to be aware that most scripting you do in a HTML
page in a browser depends on host objects like window, document,
HTMLElement etc. that are not implemented in the script engine and are
therefore not available in the shell.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

147
by: Sateesh | last post by:
Hi, I am a beginner in Python, and am wondering what is it about the indentation in Python, without which python scripts do not work properly. Why can't the indentation not so strict so as to give...
6
by: Avi Berkovich | last post by:
Hello, I was unable to use popen2.popen4 to grab python.exe's (2.3) output, for starts, it doesn't show the version information at the beginning and won't return anything when writing to the...
4
by: markscottwright | last post by:
I'm trying to cobble together an IDLE equivalent using pyshell and VIM (My idea is just to pipe exec file commands from VIM to pyshell via a socket or something). The one feature that IDLE has...
2
by: Matt | last post by:
I have a few ideas that I would like to implement using javascript, but I'm not sure how to go about this, perhaps some folks here could lend a hand. The first seems relatively simple. I would...
13
by: dmh2000 | last post by:
I am experimenting with the interactive interpreter environments of Python and Ruby and I ran into what seems to be a fundamental difference. However I may be doing something wrong in Python....
10
by: notejam | last post by:
I am trying to get started with a interactive version of Python for windows and need some help. I have played with the tutorial, and now want to write a program. In basic language, I could write...
0
by: Simon Eves | last post by:
I am trying to write a Python module to embed the functionality of Maya (the 3D modelling and animation application from Autodesk, formerly Alias) for doing scripted scene manipulation and...
3
by: Sal | last post by:
I'm running PHP 5.2.6 on WindowsXP. When I try interactive mode with ">php -a" the slightest syntax error throws me out of the interpreter and back to the command line. This is not very useful....
3
by: R. Bernstein | last post by:
The next release of pydb will have the ability to go into ipython from inside the debugger. Sort of like how in ruby-debug you can go into irb :-) For ipython, this can be done pretty simply;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.