User talk:Johnrdorazio: Difference between revisions

Page contents not supported in other languages.
From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Content deleted Content added
Line 25: Line 25:
$myVar = "PHP variable";
$myVar = "PHP variable";
$myVarUpper = strtoupper($myVar);
$myVarUpper = strtoupper($myVar);
</syntaxhighlight>

'''LUA'''
<syntaxhighlight lang="lua" line>
-- defines a factorial function
function fact (n)
if n == 0 then
return 1
else
return n * fact(n-1)
end
end

print("enter a number:")
a = io.read("*number") -- read a number
print(fact(a))
</syntaxhighlight>
</syntaxhighlight>

Revision as of 16:04, October 9, 2021

Here's a place to discuss this online encyclopedia with me

If you have any questions or need help when creating or editing an article, please feel free to contact me and we can try to work out any issues. Just click on Add topic here on top.

Test audio player

Test Score tag

\relative c'' { \time 4/4 \key c \major c4 g8 g a4 g r b^> c^> r \bar "|." } \addlyrics { Shave and a hair -- cut: two bits. }

Test syntax highlighting

Javascript:

let jsV = "Javascript variable";
let jsObj = {
  item: "First item"
}

PHP

$myVar = "PHP variable";
$myVarUpper = strtoupper($myVar);

LUA

-- defines a factorial function
function fact (n)
  if n == 0 then
    return 1
  else
    return n * fact(n-1)
  end
end

print("enter a number:")
a = io.read("*number")        -- read a number
print(fact(a))