Coding-Spot

You are not connected. Please login or register

 
 

[Tutorial] Console Messages

Message (Page 1 of 1)


 
Advance Member

Posted on Sat Jun 01, 2013 7:15 am

 

*
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...



View user profile


Message (Page 1 of 1)

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

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

Users browsing this forum: None