javascript codegolf
JavaScript
x|0 //Round x down
func`arg` //Call function with one string argument
getContext`2d`; // ^
`rgb(${r}, ${g}, ${b})` //Template literals
C //together with <canvas id=C> instead of document.getElementById("C");
1e3 //Shorter than 1000
1e-3 //Shorter than 0.001
setInterval(`console.log("something")`, 100) //Instead of function() { ... }
(a,b)=>a+b //Arrow function
_=>{} //Instead of ()=>{}
a=5 //Remove var (be careful with global vars)
innerWidth //Remove window (Instead of window.innerWidth)
99 //Sometimes 99 works instead of 100 or 9 istead of 10
//More coming soon...var n = 53.73;
var rounded = n|0; //53
Also in JavaScript:
- Title
- disable yellow box react native
- Category
- JavaScript
- Title
- cordova capacitor document viewer fail
- Category
- JavaScript
- Title
- difference between e.preventdefault and e.stoppropagation and return false
- Category
- JavaScript
- Title
- A cookie associated with a cross-site resource at http://placeholder.com/ was set without the `SameSite` attribute.
- Category
- JavaScript
- Title
- email regex
- Category
- JavaScript
- Title
- form submit programmatically
- Category
- JavaScript
- Title
- delete js
- Category
- JavaScript
- Title
- http request javascript
- Category
- JavaScript
- Title
- expo create react native app
- Category
- JavaScript
- Title
- get the size of the screen javascript
- Category
- JavaScript
- Title
- credit card mask js
- Category
- JavaScript
- Title
- file input disable open file picker javascript
- Category
- JavaScript
- Title
- Find the stray number
- Category
- JavaScript
- Title
- combine two arrays javascript
- Category
- JavaScript
- Title
- find index of object in array javascript
- Category
- JavaScript
- Title
- add variable numerically in javascript
- Category
- JavaScript
- Title
- int cating javascript
- Category
- JavaScript
- Title
- add class javascript
- Category
- JavaScript
- Title
- how to get a toggle button to do different js functions
- Category
- JavaScript
- Title
- disable mouse right click javascript
- Category
- JavaScript
- Title
- adding a variable to a string without using + in javascript
- Category
- JavaScript
- Title
- Hoisting in JavaScript MDN
- Category
- JavaScript
- Title
- .shift js
- Category
- JavaScript
- Title
- how to update angular version
- Category
- JavaScript
- Title
- create react component class
- Category
- JavaScript
- Title
- how to load localt ext file in js
- Category
- JavaScript
- Title
- javascript click button by id
- Category
- JavaScript
- Title
- add elements to an array with splice
- Category
- JavaScript
- Title
- chrome extension get current tab from popup
- Category
- JavaScript
- Title
- if object is array javascript
- Category
- JavaScript
- Title
- how to have your discord bot send two message
- Category
- JavaScript
- Title
- how to version a react app azure pipelines
- Category
- JavaScript
- Title
- how to define variable in javascript
- Category
- JavaScript
- Title
- add 2 class names react
- Category
- JavaScript
- Title
- Javascript check if undefinded
- Category
- JavaScript
- Title
- for Loop continue
- Category
- JavaScript
- Title
- how to deep copy object in javascript
- Category
- JavaScript
- Title
- angular flex layout
- Category
- JavaScript
- Title
- accept 2 values after decimal in angular forms
- Category
- JavaScript
- Title
- add to json object javascript
- Category
- JavaScript
- Title
- edit onclick event
- Category
- JavaScript
- Title
- ascii to char in javascript
- Category
- JavaScript
- Title
- how to access global scope in to local scope using javascript examples
- Category
- JavaScript
- Title
- access angular app outside localhost
- Category
- JavaScript
- Title
- flowjs attributes
- Category
- JavaScript
- Title
- combine p5 with react
- Category
- JavaScript
- Title
- how to get selected row index of table in javascript
- Category
- JavaScript
- Title
- how to turn decimales into percents with javascript
- Category
- JavaScript
- Title
- chart.js line chart
- Category
- JavaScript
- Title
- how to link javascript to html
- Category
- JavaScript
- Title
- is object js
- Category
- JavaScript
- Title
- how to compare strings javascript
- Category
- JavaScript
- Title
- angular two datepickers
- Category
- JavaScript
- Title
- error Unexpected end of JSON input while parsing near '...
- Category
- JavaScript
- Title
- initialize array javascript
- Category
- JavaScript
- Title
- angular component lifecycle hooks
- Category
- JavaScript
- Title
- custom processing datatables
- Category
- JavaScript
- Title
- 2gis nuxt
- Category
- JavaScript
- Title
- How to abreviate digits in js
- Category
- JavaScript
- Title
- angular observable subscribe and unsubscribe
- Category
- JavaScript
- Title
- how to assign same value of a key to 2 different keys in output JSON jolt
- Category
- JavaScript
- Title
- angular routing url params
- Category
- JavaScript
- Title
- how to use style in react js
- Category
- JavaScript
- Title
- crypto nodejs
- Category
- JavaScript
- Title
- https package node post request
- Category
- JavaScript
- Title
- definicion de un componente en angular
- Category
- JavaScript
- Title
- foreach async typescript
- Category
- JavaScript
- Title
- ajax larave;
- Category
- JavaScript
- Title
- como diminuir quantidade de casas decimais javascript
- Category
- JavaScript
- Title
- addeventlistener hover js
- Category
- JavaScript
- Title
- iterate through array javascript
- Category
- JavaScript
- Title
- javascript break foreach
- Category
- JavaScript
- Title
- javascript check if array is empty
- Category
- JavaScript
- Title
- display array in div javascript
- Category
- JavaScript
- Title
- how to place text at custom position on canvas
- Category
- JavaScript
- Title
- check if jquery is loaded
- Category
- JavaScript
- Title
- create react app theme_color
- Category
- JavaScript
- Title
- ionic cordova icon notification
- Category
- JavaScript
- Title
- 404 json laravel
- Category
- JavaScript
- Title
- create app react js
- Category
- JavaScript
- Title
- express get full url
- Category
- JavaScript
- Title
- divide intagers javascript
- Category
- JavaScript
- Title
- gsap
- Category
- JavaScript
- Title
- bind in javascript
- Category
- JavaScript
- Title
- double question mark javascript
- Category
- JavaScript
- Title
- how to access data in firebase realtime
- Category
- JavaScript
- Title
- function to create an element javascript
- Category
- JavaScript
- Title
- --constraint node.labels. in compose file
- Category
- JavaScript
- Title
- express and node
- Category
- JavaScript
- Title
- how to open bash_profile
- Category
- JavaScript
- Title
- javascript click event notifications
- Category
- JavaScript
- Title
- how to make javascript function consise
- Category
- JavaScript
- Title
- javascript close current tab
- Category
- JavaScript
- Title
- how to change tag name in js html
- Category
- JavaScript
- Title
- NullInjectorError: No provider for HttpHandler!
- Category
- JavaScript
- Title
- ajax run function after page load
- Category
- JavaScript
- Title
- chart.js label word wrap
- Category
- JavaScript
- Title
- how to check if function is running js
- Category
- JavaScript
- Title
- ban someone discord js
- Category
- JavaScript
- Title
- inline javascript html
- Category
- JavaScript