emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* JavaScript and babel
@ 2012-06-07  5:25 Alan Schmitt
  2012-06-07  6:17 ` Alan Schmitt
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Schmitt @ 2012-06-07  5:25 UTC (permalink / raw)
  To: emacs-orgmode Mode

Hello,

I'm writing a presentation about JavaScript and I was trying to get some code to run. Unfortunately whatever I try, I get "undefined" as the results, as in the following:

#+begin_src js
1;
#+end_src

#+RESULTS:
: undefined

Could someone give an example of the syntax to use?

Thanks a lot,

Alan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: JavaScript and babel
  2012-06-07  5:25 JavaScript and babel Alan Schmitt
@ 2012-06-07  6:17 ` Alan Schmitt
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Schmitt @ 2012-06-07  6:17 UTC (permalink / raw)
  To: emacs-orgmode Mode

On 7 juin 2012, at 07:25, Alan Schmitt wrote:

> Hello,
> 
> I'm writing a presentation about JavaScript and I was trying to get some code to run. Unfortunately whatever I try, I get "undefined" as the results, as in the following:
> 
> #+begin_src js
> 1;
> #+end_src
> 
> #+RESULTS:
> : undefined
> 
> Could someone give an example of the syntax to use?

I found out I need to use "console.log" to get information out.

Alan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-07  6:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-07  5:25 JavaScript and babel Alan Schmitt
2012-06-07  6:17 ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).