Apply local draft version or discard it
Indent with tabs
Code hinting (autocomplete) (beta)
Only auto-run code that validates
Auto-save code (bumps the version)
Auto-close HTML tags
Clear console on run
Live code validation
Highlight matching tags
Show boilerplates bar less often
Save anonymous (public) fiddle?
- Be sure not to include personal data
- Do not include copyrighted material
Log in if you'd like to delete this fiddle in the future.
Fork anonymous (public) fiddle?
No autoresizing to fit the code
Render blocking of the parent page
The map method will iterate through every element of the array, creating a new array with values that have been modified by the callback function, and return it. Note that it does not modify the original array.
In our example the callback only uses the value of the array element (the val argument) but your callback can also include arguments for the index and array being acted on.
Use the map function to add 3 to every value in the variable oldArray, and save the results into variable newArray. oldArray should not change.
Add title to make the fiddle public
/echo simulates Async calls:
See docs for more info.
Created and maintained by Piotr and @oskar.
Hosted on DigitalOcean
All code belongs to the poster and no license is enforced. JSFiddle or its authors are not responsible or liable for any loss or damage of any kind during the usage of provided code.
Roadmap (vote for features)
If you don't mind tech-related ads (not tracked), and want to keep us running, whitelist JSFiddle in your blocker.
Thank you! ❤️