Confirm the Ending (javascript)

I am now at Basic algorithm Scripting in freeCodeCamp.org (https://www.freecodecamp.org/challenges/confirm-the-ending)

here is my code:

Blockquote
function confirmEnding(str, target) {
var str2 = str.substr(str.length -1 , 1);
var target2 = target.substr(target.length - 1 , 1);
return str2 === target2;
}
confirmEnding(“Walking on water and developing software from a specification are easy if both are frozen”, “specification”);

freecodecamp says that this argument should return false whereas the challenge says it should return true.

what is wrong with my code to make this return false? I am very confused.

Where do you get the conflicting information from?
"oth are frozen” != “specification”, that’s why your code returns the wrong result.