자바스크립트 indexOf()

Jmnote (토론 | 기여)님의 2023년 10월 28일 (토) 14:53 판 (→‎개요)

1 개요

JavaScript indexOf()
자바스크립트 indexOf()
console.log("hello world hello".indexOf("hello")); // 1
console.log("hello world hello".indexOf("yellow")); // -1 (not exists)
console.log("hello world hello".indexOf("hello", 4)); // 12

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}