mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-11-04 15:38:04 +00:00
Move JS examples to subfolder
This commit is contained in:
1 parent
a6469f3978
commit
73135acb8c
23 files changed
No files matched your search
@@ -0,0 +1,19 @@
|
||||
let sampleText = "Hello, World!";
|
||||
|
||||
let lengthOfText = "Length of text: " + to_string(sampleText.length);
|
||||
print(lengthOfText);
|
||||
|
||||
let start = 7;
|
||||
let end = 12;
|
||||
let substringResult = sampleText.slice(start, end);
|
||||
print(substringResult);
|
||||
|
||||
let searchStr = "World";
|
||||
let result2 = to_string(sampleText.indexOf(searchStr));
|
||||
print(result2);
|
||||
|
||||
let upperCaseText = "Text in upper case: " + to_upper_case(sampleText);
|
||||
print(upperCaseText);
|
||||
|
||||
let lowerCaseText = "Text in lower case: " + to_lower_case(sampleText);
|
||||
print(lowerCaseText);
|
||||
Reference in new issue
Block a user