String.prototype.indexOf('์์น๋ฅผ์ฐพ์๊ธ์');: ์ฐพ๋ ๊ธ์์ ์์น๋ฅผ ์ซ์๋ก ์๋ ค์ค. ์์ผ๋ฉฐ -1 ๋ฐํ.๋ฌธ์ ๋ฐ์ดํฐ์ prototype์ผ๋ก ์๋ ํจ์๋String.indexOf('๊ธ์');ํ์์ผ๋ก ์ฌ์ฉํ ์ ์๋ค.let str = "hello worl