Compare two strings

Report a typo

Compare the two given strings using the appropriate method. The output should be 1.

Sample Input 1:

Sample Output 1:

1
Write a program in JavaScript
let firstStr = "Apple";
let secondStr = "Apple Iphone";

let compareTwo = ...
console.log(compareTwo);
___

Create a free account to access the full topic