Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Search for a value in a part of a JavaScript array

node v14.20.1
version: 1.0.0
endpointsharetweet
const numbers = [1, 2, 3, 4, 5]; console.log(numbers.includes(3, 3)); // Output: false console.log(numbers.includes(3, 2)); // Output: true
Loading…

no comments

    sign in to comment