Contoh metode substring
let str = 'JavaScript Substring';
let substring = str.substring(0,10);
console.log(substring);
Code language: JavaScript (javascript)
OMAR
let str = 'JavaScript Substring';
let substring = str.substring(0,10);
console.log(substring);
Code language: JavaScript (javascript)