There’s also the Function object.
var adder = new Function("a", "b", "return a + b");
More Related Contents:
- How to edit my existing JS script to upload form when submit is clicked? [closed]
- window.onload vs $(document).ready()
- How can I check if a string is a valid number?
- How do I iterate through table rows and cells in JavaScript?
- Browser-native JSON support (window.JSON)
- Remove ALL white spaces from text
- How to replace all occurrences of a string in JavaScript
- How to get pseudo element?
- Get child node index
- How to display a confirmation dialog when clicking an link?
- Export to csv in jQuery
- How to Detect Browser Window /Tab Close Event?
- !function(){ }() vs (function(){ })()
- Why {} + {} is NaN only on the client side? Why not in Node.js?
- How to use ES8 async/await with streams?
- Why doesn’t the shorthand arithmetic operator ++ after the variable name return 2 in the following statement?
- Auto-Submit Form using JavaScript
- OR queries in Firebase
- Waiting on multiple asynchronous calls to complete before continuing
- Detect CSS transitions using Javascript (and without modernizr)?
- Why does HTML Canvas getImageData() not return the exact same values that were just set?
- Chrome and IE sorts JSON Object automatically, how to disable this?
- How to change a value from JavaScript
- How to submit a form when the return key is pressed?
- What’s the difference between ++i and i++ in JavaScript [duplicate]
- “Aw, Snap” when data uri is too large
- React cannot read property map of undefined
- Proper way to remove all series data from a highcharts chart?
- How to delete an HTML element inside a div with attribute contentEditable?
- Dynamically Add Variable Name Value Pairs to JSON Object