function func() {
let str = 'Workingcode.in';
let value = str.startsWith('Working');
console.log(value);
}
Output: true
startsWith() Function use in JavaScript
Working Code Asked question November 24, 2023
Sorry, you do not have permission to read comments.