This is a bitwise or.
Since bitwise operations only make sense on integers, 0.5
is truncated.
x | 0
is x
, if x
is an integer.
More Related Contents:
- Show results of multiple prompt boxes using Javascript [closed]
- Regular Expression jquery validation1 [duplicate]
- I would like to ask how to explain this (javascript function)
- Single event handler for four button clicks
- Parse an HTML string with JS
- Can’t append element
- Does return stop a loop?
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource error
- Why should I use a semicolon after every function in javascript?
- Meteor: Proper use of Meteor.wrapAsync on server
- Blocking device rotation on mobile web pages
- How to save the output of a console.log(object) to a file?
- Convert array to object keys [duplicate]
- Use javascript to check http status codes
- Express js form data
- Setting a variable equal to another variable [duplicate]
- Load existing components dynamically Angular 2 Final Release
- React “after render” code?
- Detect MacOS, iOS, Windows, Android and Linux OS with JS [duplicate]
- How to check if object has any properties in JavaScript?
- Get value of a string after last slash in JavaScript
- how to get selection inside a div using jquery/javascript
- What are some good ways to prevent people from copying my source code? [closed]
- Storing a variable in the JavaScript ‘window’ object is a proper way to use that object?
- Detect failure to load contents of an iframe
- Google Maps – Weird geometry.location attributes (G, K)
- Await an iterative function without delimiter in JS
- How to keep the header static, always on top while scrolling?
- How to iterate a table rows with JQuery and access some cell values?
- How do I get a floating footer to stick to the bottom of the viewport in IE 6?