Lua - Demonstrate the example of local and global variables Code Example

The code for Demonstrate the example of local and global variables

a = 108         -- Global variable
local b = 1108  -- Local variable

print (a)
print (b)

--[[
Output:
108
1108
--]]
Code by IncludeHelp, on August 25, 2022 22:42

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.