Basic Syntax
"Hello, World!" Program
# hello.jl
# This is a single line comment
#=
This is a block comment to show
comments across multiple lines.
=#
print("Hello, World!")Hello, World!# hello2.jl
greeting = "Hello, World!"
print(greeting) # print greeting
print("Greeting 1: $greeting") # print greeting as part of a string phrase
print("Greeting 2: $greeting\n") # print with newline (\n) character
println("Greeting 3: $greeting") # println automatically adds the newline characterVariable Assignment
Comments
Print Statements
Exercises
Resources
Last updated
