mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-11-04 06:57:27 +00:00
JS: Second batch of OFW PR changes
This commit is contained in:
1 parent
2353871ab7
commit
bb6c015235
15 files changed
+78
-63
No files matched your search
@@ -1,6 +1,6 @@
|
||||
let sampleText = "Hello, World!";
|
||||
|
||||
let lengthOfText = "Length of text: " + toString(sampleText.length);
|
||||
let lengthOfText = "Length of text: " + sampleText.length.toString();
|
||||
print(lengthOfText);
|
||||
|
||||
let start = 7;
|
||||
@@ -9,7 +9,7 @@ let substringResult = sampleText.slice(start, end);
|
||||
print(substringResult);
|
||||
|
||||
let searchStr = "World";
|
||||
let result2 = toString(sampleText.indexOf(searchStr));
|
||||
let result2 = sampleText.indexOf(searchStr).toString();
|
||||
print(result2);
|
||||
|
||||
let upperCaseText = "Text in upper case: " + sampleText.toUpperCase();
|
||||
|
||||
Reference in new issue
Block a user