SyntaxFix
Write A Post
Hire A Developer
Questions
// Instead Of var index = arr.indexOf(200) // Use var index = arr.includes(200);
Please Note: Includes function is a simple instance method on the array and helps to easily find if an item is in the array(including NaN unlike indexOf)