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