btnADD.click(() => {
console.log(inputNewTask.val())
inputNewTask.val("")
})
In this function, what is the role of ’ => ’ .
Also, I am not able to get this symbol ( => ) on the editor(vs code).
pls help.
btnADD.click(() => {
console.log(inputNewTask.val())
inputNewTask.val("")
})
In this function, what is the role of ’ => ’ .
Also, I am not able to get this symbol ( => ) on the editor(vs code).
pls help.
That is the syntax is arrow function. Search about them if you don’t know about arrow functions.
It is an equal sign, followed by greater than sign.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.