Search Results
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 |
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.
4
votes
1
answer
78
views
Improving fading functions
Regarding these two functions, which do the same thing...
Large and confusing:
var fade = function(flag){
if (volumeIntervalId)
clearInterval(volumeIntervalId);
switch (flag){
…
2
votes
2
answers
5k
views
Creating a new marker on a map
Is this code good practice? What kind of design pattern should I use for this specific situation?
The following function creates a new marker on a map. It sets a new image for it, except when the mar …
2
votes
1
answer
809
views
Module pattern callback implementation
I'm rewriting a simple app using HTML/CSS/JavaScript that creates animations with images using intervals, and there's a bunch of buttons that controls these animations. … It's scaling and becoming really messed up, with logic mixed with DOM manipulations via jQuery all through one JavaScript script file.
I've decided to use the Module design pattern. …
3
votes
2
answers
3k
views
Load images, manipulate DOM, store/retrieve data using localStorage
Obs: I'd preferably handle these situations without an external library, using only JavaScript, but if there are some helpful ones, they're also welcome. …