Index of string

Report a typo

What is the output of the following code?

let myStr = "Lorem ipsum dolor sit amet, consectetur  elit. In purus justo, a pulvinar quam mattis et."

if (myStr.startsWith("Lorem") && myStr.endsWith("et")) {
    console.log("1");
} else {    
    console.log("0");
}
Select one option from the list
___

Create a free account to access the full topic