const word = "pineapple is yummy"; const value = word.indexOf("apple"); console.log(value);
apple이 숨어있네용?? 어디있죠??? 4번째부터 있네요 ㅎㅎㅎ
출력 값 : 4;