
Brian E. answered 03/27/19
Tutor
4.9
(14)
Senior Full Stack JavaScript Developer (Node & React)
JavaScript uses the "==" and "===" operators for equality. "=" is for assignment.
You can fix your error by using either "==" or "===". They are different. Please do a little research before deciding which fits your use case.