Question: Which statement is correct regarding the following JavaScript code? let word 1 = Alpha; let word 2 = Beta; Question 3 4 options: word 1

Which statement is correct regarding the following JavaScript code?
let word1= "Alpha";
let word2= "Beta";
Question 34 options:
word1.localeCompare(word2) returns true
word1.localeCompare(word2) returns false
word1.localeCompare(word2) returns -1
word1.localeCompare(word2) returns 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!