Fetch: POST JSON data

With ES2017 async/await support, this is how to POST a JSON payload: Expand snippet Can’t use ES2017? See @vp_art’s answer using promises The question however is asking for an issue caused by a long since fixed chrome bug.Original answer follows. chrome devtools doesn’t even show the JSON as part of the request This is the … Read more

How to play audio?

If you don’t want to mess with HTML elements: Show code snippet This uses the HTMLAudioElement interface, which plays audio the same way as the <audio> element. If you need more functionality, I used the howler.js library and found it simple and useful. Show code snippet

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)