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
function
func() {
let str =
'Workingcode.in'
;
let value = str.startsWith(
'Working'
);
console.log(value);
}
Output: true