console.log() called on object other than console

Editor’s Draft of Console API used to say: Logging APIs SHOULD all be callable functions allowing them to be passed as arguments to error handling callbacks, forEach methods, etc. This is no longer included in the current version of the specification. I thought that Chrome and Node.js changed it to work like in the specification, … Read more

How to avoid bind or inline arrow functions inside render method

First: A simple solution will be to create a component for the content inside a map function and pass the values as props and when you call the function from the child component you can pass the value to the function passed down as props. Parent deleteTodo = (val) => { console.log(val) } todos.map(el => … Read more

What are the differences (if any) between ES6 arrow functions and functions bound with Function.prototype.bind?

There are no (significant) differences. Well, okay, that’s a little premature. There are three tiny differences unique to arrow functions. Arrow functions cannot be used with new. This means, of course, that they do not have a prototype property and cannot be used to create an object with the classically-inspired syntax. new (() => {}) … Read more

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