JSFiddle - React, Tailwind, and code Playground

JavaScript

var str = "Hello world, welcome to the universe.";
var n = str.indexOf("{\"start_date\":\"Invalid date\",\"end_date\":\"Invalid date\"}"); // n = 13 là vị trí đầu tiên trong str xuất 
 					// hiện welcome

alert(n);