blob: 46a273753a7886d56cfb4678d4e3d54cc52fc232 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
WScript.Echo("Basic string compare.");
var str1 = "abcd1234"
var str2 = "1234567a"
var str1a = "abcd1234"
WScript.Echo("compare ( '" + str1 + "' , '" + str1a + "' ) = " + str1.localeCompare(str1a));
WScript.Echo("compare ( '" + str1 + "' , '" + str2 + "' ) = " + str1.localeCompare(str2));
WScript.Echo("compare ( '" + str1 + "' , undef ) = " + str1.localeCompare());