Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 53251

JavaScript is a versatile, high-level programming language. It is the programming language in all browsers.and can be used for back-end programming with node.js. Use this tag for questions regarding vanilla JavaScript; optionally tagged with an ECMAScript version. If you are using a preprocessor such as TypeScript please tag with that too.

6 votes
1 answer
108 views

Simple syntax highlighter - part 2

*/ var DEFAULTS = { JavaScript: syntax( ["\\babstract\\b", "\\barguments\\b", "\\bboolean\\b", "\\bbreak\\b", "\\bbyte\\b", "\\bcase\\b", "\\bcatch\\b", …
Ethan Bierlein's user avatar
10 votes
2 answers
836 views

Block building game

I've spent the last weekend working on this basic block building game, which I'm quite proud of. I do think it can be improved in many places though, e.g, performance issues due to my badly designed t …
Ethan Bierlein's user avatar
4 votes
1 answer
693 views

Random walk terrain generator

I was messing around with Javascript in Khanacademy the other day and this "monstrosity" was born. … MinX || BlockX >= MaxX) { break; } // test if at edge if(BlockY <= MinY || BlockX >= MaxY) { break; } // increment repeats Repeats++; } Since this version of Javascript
Ethan Bierlein's user avatar
10 votes
1 answer
200 views

Block building game - Part 2

I've taken my previous block building game and added some performance improvements, and commented some things that needed to be commented for better explanation. /** Here are few instructions before …
Ethan Bierlein's user avatar
20 votes
3 answers
2k views

Terrain Generator - KhanAcademy

I'm new to JavaScript, and I've been learning off Khanacademy. I wrote the following basic terrain generator and I'm wondering if it could use any improvements. …
Ethan Bierlein's user avatar
6 votes
3 answers
1k views

Bouncing ball simulation

I was fooling around with some maths and realized that I could use a parabola to represent a bouncing ball. So, naturally, I decided to make it in code. var Ball = function(r, v, a, y, x) { this. …
Ethan Bierlein's user avatar
12 votes
2 answers
844 views

In-browser syntax highlighter

code-py'); }); <html> <head> <meta charset="utf-8" /> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <title>Test</title> </head> <body> <p>JavaScript
Ethan Bierlein's user avatar
7 votes
1 answer
336 views

Processing.js physics simulation

I've been fooling around in JavaScript again, and I've come up with this simple physics simulation. I think it has a pretty simple setup, here's "psuedocode" of sorts to explain it. …
Ethan Bierlein's user avatar
10 votes
1 answer
340 views

Processing.js particle system

After about half an hour of fooling around with Processing.js/JavaScript, I got this fairly decent particle system set up: // main particle constructor class var Particle = function(position) { this.velocity …
Ethan Bierlein's user avatar
5 votes
1 answer
179 views

An utterly pointless jQuery program

This is the first jQuery program I've written, and it doesn't do much, but I'd appreciate the feedback. Just click on the different colored buttons to do things. Codepen var $greenElement = $( …
Ethan Bierlein's user avatar
6 votes
2 answers
452 views

Another JavaScript Stack Exchange chat bot

I've been inspired by @SirPython's SirAlfred JavaScript chat bot, so I went and made my own. This one is slightly different though, in the fact that it can accept input in a more lenient way. … While in a Stack Exchange chat room, copy-paste the above source into the JavaScript console, and then hit enter. …
Ethan Bierlein's user avatar