Strings

← Back to documentation


Description

Strings represent text. They are enclosed in double quotes.

Syntax

"text here"

Examples

Creating strings

name = "Jaf"
greeting = "Hello, World!"
empty = ""
print(name)
# Output: Jaf

String concatenation

first = "Hello"
second = "World"
result = first + " " + second + "!"
print(result)
# Output: Hello World!

Numbers and strings

version = 2.0
print("Jaf version " + version)
# Output: Jaf version 2.0

String comparison

a = "apple"
b = "apple"
c = "banana"
print(a == b)
# Output: 1 (true)

print(a == c)
# Output: 0 (false)

Print with strings

name = "Jaf"
year = 2026
print("Welcome to " + name + " " + year)
# Output: Welcome to Jaf 2026

Notes


See Also


© 2026 elliktronic · Jaf Language