2025-09-10 13:41:59 +02:00
|
|
|
Tralalero Tralala
|
2025-09-10 13:31:19 +02:00
|
|
|
// string_manipulation.tralla
|
|
|
|
|
// This example demonstrates string concatenation.
|
|
|
|
|
|
|
|
|
|
let greeting = "Hello";
|
|
|
|
|
let name = "World";
|
|
|
|
|
|
|
|
|
|
Unire Corde full_greeting greeting name;
|
2025-09-10 13:41:59 +02:00
|
|
|
Matteeeo "Concatenated string:" // Expected: Concatenated string: HelloWorld
|
|
|
|
|
Matteeeo full_greeting
|
2025-09-10 13:31:19 +02:00
|
|
|
|
2025-09-10 13:41:59 +02:00
|
|
|
let part1 = "This_is_a_";
|
|
|
|
|
let part2 = "test.";
|
|
|
|
|
Unire Corde message part1 part2;
|
|
|
|
|
Matteeeo "Another concatenated string:" // Expected: Another concatenated string: This_is_a_test.
|
|
|
|
|
Matteeeo message
|
2025-09-10 13:31:19 +02:00
|
|
|
|
|
|
|
|
let space = " ";
|
|
|
|
|
Unire Corde spaced_greeting greeting space;
|
|
|
|
|
Unire Corde final_greeting spaced_greeting name;
|
2025-09-10 13:41:59 +02:00
|
|
|
Matteeeo "Concatenated with space:" // Expected: Concatenated with space: Hello World
|
|
|
|
|
Matteeeo final_greeting
|
|
|
|
|
Bombardiro Crocodilo
|