What does the colon mean

Tell us what’s happening:
I don’t understand what is meaning of colon in "myGlobal: and oopsGlobal: ".

Your code so far

// Declare the myGlobal variable below this line
var myGlobal = 10;

function fun1() {
// Assign 5 to oopsGlobal Here
oopsGlobal = 5;

// Only change code above this line

function fun2() {
var output = "";
if (typeof myGlobal != "undefined") {
  output += "myGlobal: " + myGlobal;
if (typeof oopsGlobal != "undefined") {
  output += " oopsGlobal: " + oopsGlobal;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36.

Challenge: Global Scope and Functions

Link to the challenge:

Hey there,

nice to meet you! :wave:

If the value of name is John,
then you would see myGlobal: John.

So the colon works as a character, in this case it has no specific meaning.

You can replace : with every other character you want to see there.

"myGlobal# " + name; => myGlobal# John
"myGlobal! " + name; => myGlobal! John