////////////////// STRINGS and thier method//////////////////////// const name = "hitesh-hc"; const repoCount = 50; //// string interpolation console.log(`hello my name is ${name} and my repoCount is ${repoCount}`); ///// hello my name is hitesh and my repoCount is 50 /////string decalaration const gamename = new String ("hitesh"); console.log(gamename); console.log(gamename[0]); console.log(gamename.__proto__); console.log(gamename.length); console.log(gamename.toUpperCase()); console.log(gamename.charAt(2)); console.log(gamename.indexOf('t')); const newString = gamename.substring(0,4); // it will show 0 to 3 index console.log(newString); const anotherString = gamename.slice(-8,4)/// picha se 0 se 4 console.log(anotherString); const newStringOne = " hitesh "; console.log(newStringOne); console.log(newStringOne.trim()); const url ="htppp//hitesh;;;okay" console.log(url.replace(';;;','-'))/// replacing console.log(url.includes('sundar')) //// in string or not console.log(gamename.split('-'))