Save yourself 2 - 3 Seconds while coding using this tip
Well, have you ever had big block of code that you want to comment and you have to do
/*
(several lines of code)
*/
Well, then you want to uncomment it for whatever reason and comment it again.... you will have to go to the top of the block of code and remove the /* then search for the closing */... That's like wasting 2 - 3 seconds right!
Well, here is a faster way...
Comment the large block of code this way
/**
(hey this is a large block of commented code)
/**/
Now if you want to uncomment it, just go to the starting comment (ie /*) and append (/) and if you want to comment it, just remove the last forward slash from the starting comment eg
/**/
(hey this is a large block of uncommented code that i may comment later)
/**/
I hope this small tip saves you about 2 - 3 seconds while coding.... wink!
Written by Morrison Laju
Related protips
Have a fresh tip? Share with Coderwall community!
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside