JavaScript String Methods in Geogebra

//JavaScript String Methods [br]//charAt()[br]var str = "Geogebra Web";[br]alert(str.charAt(0));[br]///////////////////////////////[br]//charCodeAt()[br]var str = "Geogebra Web";[br]alert(str.charCodeAt(0));[br]///////////////////////////////[br]//concat()[br]var str1 = "Geogebra ";[br]var str2 = "Web";[br]alert(str1.concat(str2));[br]///////////////////////////////[br]//fromCharCode() [br]alert(String.fromCharCode(65));[br]///////////////////////////////[br]//indexOf() [br]var str = "Geogebra, welcome to the dynamic mathematics software.";[br]alert(str.indexOf("welcome"));[br]///////////////////////////////[br]//lastIndexOf()[br]var str = "GeoGebra to learn mathematics and science. Dynamic mathematics for everyone!";[br]alert(str.lastIndexOf("mathematics"));[br]///////////////////////////////[br]//match()[br]var str = "The rain in SPAIN stays mainly in the plain";[br]var res = str.match(/ain/g);[br]alert(res.join());[br]var str= "Welcome to geeks for geeks!";[br]var res=str.match(/eek/g);[br]alert(res.join());[br]///////////////////////////////[br]//replace()[br]var str = "Visit Help Geogebra!";[br]var res = str.replace("Help", "to");[br]alert(res);[br]///////////////////////////////[br]//search()[br]var str = "Visit Help Geogebra!";[br]var n = str.search("Geogebra");[br]alert(n);[br]///////////////////////////////[br]//slice()[br]var str = "Geogebra Web!";[br]var res = str.slice(0, 3);[br]alert(res);[br]///////////////////////////////[br]//split()[br]var str = "How are you doing today?";[br]var res = str.split("");[br]alert(res.join());[br]///////////////////////////////[br]//substr() [br]var str = "Geogebra Web";[br]var res = str.substr(3, 5);[br]alert(res);[br]///////////////////////////////[br]//substring()[br]var str = "Geogebra Web";[br]var res = str.substring(3, 8);[br]alert(res);[br]///////////////////////////////[br]//toLowerCase()[br]var str = "Geogebra Web";[br]var res = str.toLowerCase();[br]alert(res);[br]///////////////////////////////[br]//toUpperCase()[br]var str = "Geogebra Web";[br]var res = str.toUpperCase();[br]alert(res);[br]///////////////////////////////[br]//valueOf()[br]var str = "Geogebra Web";[br]var res = str.valueOf();[br]alert(res);[br]///////////////////////////////

Information: JavaScript String Methods in Geogebra