r/javascript • u/_dredraz_ • Apr 07 '13
Can I just download JavaScript and go?
I have been playing around with python for a while. I want to play with javascript now. Where is a good place to download JS? / Can I just download it like I did with python? I assume I will able to just use my text editor (nopepad ++) to write script? Any suggestions would be great I just can't seem to find something that feels legit and I'm not sure if JS is a free language ...
18
Apr 07 '13
On behalf of Netscape, I'm giving you a lifetime supply of free JavaScript.
Edit: just let yourself go
5
u/zdot64 Apr 07 '13
Would recommend WebStorm instead of Notepad++: http://www.jetbrains.com/webstorm/
I'm not affiliated with them, just a big fan.
4
1
u/Neurotrace Apr 09 '13
100% agree if you see yourself writing a lot of JavaScript since eventually the trial period runs out. If you're serious about your JS then I can't suggest WebStorm enough.
4
13
u/danjo519 Apr 07 '13
Seriously, has no one mentioned Node JS (http://nodejs.org).
This will allow you to write Javascript in a text editor like Notepad++ and then execute it in the console. They have a lot of prebuilt functionality too through the NPM registry (instructions on the Node website).
2
u/Neurotrace Apr 09 '13
I think the lack of Node comments is because I wouldn't dive in to server-side JS without fiddling with client-side JS. I know they're more-or-less the same but why bother setting up a server when you can just fiddle with stuff in the browser to start with?
2
u/danjo519 Apr 09 '13
I've written Node that was not intended to be used as server side code. It has plenty of built-in features that can make it useful as a desktop development language. At work we use the Grunt build task system which is completely written in Javascript/Node.
-1
u/zzzwwwdev Apr 09 '13
Not to say that you're wrong per se, but, the wikipedia article starts:
Node.js is a server-side software system designed for writing scalable Internet applications, notably web servers. Programs are written on the server side...
2
u/mergeset Apr 11 '13
You clearly have no idea what Node is.
0
u/zzzwwwdev Apr 12 '13
Not really sure why you're being a jerk. I actually do have an idea of what Node is. If you notice, the first thing I did was acknowledge that I wasn't trying to say u/danjo519 was wrong.
I was trying to add to the discussion and backup Neurotrace a bit by showing that he's not crazy for associating node with server-side js.
OP is clearly a novice, and would probably be pretty intimidated by Node. Having him just think about it as "Server-Side" stuff for now isn't bad, nor is it totally unwarrented.
Its pretty safe to say r/javascript agrees with me that the path of least resistence for learning JS is not to try to grok Node before playing with JS in the Browser.
-1
u/gngl Apr 12 '13
"I actually do have an idea of what Node is."
...in which case you'd be expected to understand why some people use Node.js as a rather practical script interpreter on their desktop machines, with interfaces to the OS, not actually serving anything to anyone.
0
4
u/namanyayg Apr 07 '13
Here you go. http://vanilla-js.com/
I'm just kidding, the browser compiles your JS. Write code, open a latest browser, done!
1
u/a-t-k Frontend Engineer Apr 08 '13
Usually, there's no need to download: every modern browser understands JS once referenced correctly inside a page. But if you don't want the browser's DOM, there are server-side engines like node.js or rhino, too. If you don't want the server, but only the pure language, you can download V8 without a browser, but don't expect to be able to do much with that.
Yes, you assume correctly that you'll edit it inside a text editor: Sublime Text is very good, but notepad++ isn't too bad either.
1
u/gngl Apr 12 '13
"Any suggestions would be great I just can't seem to find something that feels legit"
You can't get more legit than http://eloquentjavascript.net/ - start from there!
"and I'm not sure if JS is a free language"
Of course that JS is a free language. In sane places of the world, languages are neither patentable nor copyrightable. That makes any language a free language. (They can be trademarked, but that won't affect the code.)
-1
u/lanasa Apr 09 '13
You might also consider checking out jQuery. http://jquery.com
It'll help out with some of the cross-browser nuances of JavaScript, as well as make manipulating the DOM a LOT easier.
3
u/Gelus Apr 10 '13
We should probably let the man learn the fundamentals before shoving libraries down his throat.
1
u/stagas Apr 11 '13
Really bad advice for a beginner. Correlating jQuery as being JavaScript in your mind. You just can't base your knowledge on an abstraction that begins with a function call and creates its own little world of abstractions that never reach the depth of understanding what is going on. jQuery is when you DON'T want to learn JavaScript but want some fancy animation or whatever on your webpage.
9
u/juliob Apr 07 '13
Most modern browsers have a JavaScript console, so you probably already have it (Firefox have a "ScratchPad" in Tools -> Web Developer).
Depending on what you're doing, you can write a simple HTML page with
<script>. Or, if you want something more complex, there is Node.js.