DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Strings — Example 32

Quick explanation + ready code for: Strings.

Simula Strings Back to examples
Back to language
Syntax: Strings in Simula. ID: #32

Code

const s = "lesson-19";
console.log(s.toUpperCase(), s.includes("lesson"));

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.