Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

contains() js

const ParticipantsOfArtExhibition = [
	"Jhon",
  	"Amy",
  	"Liam"
]

ParticipantsOfArtExhibition.includes("Jhon") //true
ParticipantsOfArtExhibition.includes("Thompson") //false
ParticipantsOfArtExhibition.includes("Amy") //true
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
3+9 =