JS: camelCase changes

This commit is contained in:
Willy-JL
2024-10-16 01:55:00 +01:00
parent a85819f37e
commit c8b3bf1869
6 changed files with 15 additions and 15 deletions

View File

@@ -12,8 +12,8 @@ let searchStr = "World";
let result2 = toString(sampleText.indexOf(searchStr));
print(result2);
let upperCaseText = "Text in upper case: " + to_upper_case(sampleText);
let upperCaseText = "Text in upper case: " + toUpperCase(sampleText);
print(upperCaseText);
let lowerCaseText = "Text in lower case: " + to_lower_case(sampleText);
let lowerCaseText = "Text in lower case: " + toLowerCase(sampleText);
print(lowerCaseText);

View File

@@ -12,14 +12,14 @@ while (dialog.message("Interactive Console", result)) {
let input = keyboard.text(256);
if (!input) break;
let path = tmp_template + to_string(tmp_number++);
let path = tmp_template + toString(tmp_number++);
storage.write(path, "({run:function(){return " + input + ";},})");
result = load(path).run();
storage.remove(path);
// Must convert to string explicitly
if (typeof result === "number") {
result = to_string(result);
result = toString(result);
} else if (typeof result === "undefined") {
result = "undefined";
} else if (typeof result === "boolean") {