Jump to content
Killersites Community
Sign in to follow this  
webmanz

error code colors different

Recommended Posts

re chapter 3 lesson Javascript Errors

From this:

console.log("Something happened: " + message);
        }

to this

console.log("Something happened: + message);
        }

Using Sublime the only thing that changed color for me when I removed quotes as per the video was + message, it changed color and there was a horizontal pink box stretching left to right on same code line just after  + message had changed color.

 

Unlike the video lesson the rest of my code didn't change color when I removed the quotes - they remained the same colors. Perhaps it's its something to do with my settings? Stef did mention you can adjust color error code within Sublime.

Edited by webmanz

Share this post


Link to post
Share on other sites

This is just a Sublime setting I am guessing. Hard for me to tell without seeing it. That said, the key is to have the quotes in proper place. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×