mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-23 15:00:13 +00:00
20 lines
520 B
JavaScript
20 lines
520 B
JavaScript
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);
|