Coding-Spot

You are not connected. Please login or register

 
 
 

[Tutorial] Console Messages

Message (Page 1 of 1)

#1

Nathan Adhitya

avatar
 
Advance Member

Posted June 1st 2013, 2:15 pm

 

*
THANKED

I'm not sure this is helpfull but..
this will send messages to the console
This is what i'm using now..
Code:
var USERNAME ="{USERNAME}";
console.log("Welcome To Nathan's Coding Console.");
console.log("Loading Scripts...");
console.log("Checking Scripts...");
console.log("Checking Roles...");
if (USERNAME == "Nathan Adhitya"){
console.warn("Role : You Are An Administrator");
}else if (USERNAME == "Guest"){
console.warn("Role : You Are A Guest");
}else {
console.warn("Role : You Are A Member");
}
console.log("Roles Checking Finished...");
Then..
here's a good code for begining
Warn :
Code:
console.warn("Your Message");
Error :
Code:
console.error("Your Message");
Info :
Code:
console.log("Your Message");
Debug :
Code:
console.debug("Your Message");
Put them in javascript as you like...
and make them more than one... lawl
so this is my tutorial..
mark if you mind to move this topic I appreciate it...





Message (Page 1 of 1)

Permissions in this forum:
You cannot reply to topics in this forum

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None