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 not deleted user 110993

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.

2 votes

splitting and merging Ranges array in javascript

That way, you keep the HTML clear of logic - it's all contained in your JavaScript. As an added benefit, you can attach more event listeners that do other stuff without changing these functions. …
VLAZ's user avatar
  • 455
1 vote

Simple conditional operator optimization

First of all, you can use the OR operand. It's idiomatic to mean "either get the value of a variable or a fallback value, if falsey" assignment = someVariable || "fallback value" Since you're check …
VLAZ's user avatar
  • 455
3 votes
Accepted

Mean by properties in array of objects

Since this is labelled TypeScript, I'm going to review it as such. First of all, you aren't using types, which defeats the purpose of using TypeScript. You should define what your objects look like i …
VLAZ's user avatar
  • 455
5 votes

Simple front end TODO list

In JavaScript, they are not strictly required due to a feature called automatic semicolon insertion (ASI). So, a lot of times you can get away without putting them. … You can employ a linter like ESLint or JSCS (JavaScript Code Style) where you can define the style you want (indentation using spaces/tabs, spaces around equals signs, etc) and then they will scan your …
VLAZ's user avatar
  • 455
3 votes

To-do list web application

JavaScript Small Things Typo in your variable name: allowTextOverrride has too many rs - the correct would be allowTextOverride Check for missing semicolons - the line var saveServerURL = "/save" doesn't … You can also do it in one line, if you really want to inputs.title = inputs.title.trim() || "<untitled>"; is idiomatic JavaScript assignment that will set the value to the fallback string "<untitled>" …
VLAZ's user avatar
  • 455