>codeshame
Score: 2.0 out of 10
2.0/10
verdict: needs_serious_help

"Sloppy logging with no error handling, how quaint."

lang: JavaScript·1 lines
//your_submission
LazyLogger.js
log("hello")
//detailed_analysis
!

Inadequate Error Handling

You're logging to a function called 'log' without checking if it's actually defined, and without any error handling. What could possibly go wrong?
?

Unclear Intent

What's the point of logging 'hello' anyway? Is this some sort of primitive 'Hello World' attempt? Get to the point, what are you trying to achieve?
?

Console Abuse

Using 'log' directly? How lazy. Use the actual 'console.log' function, it's not like it's hard to type a few extra characters.
//suggested_fix
LazyLogger_fixed.js
+console.log('hello');
+try {
+ // your code here
+} catch (error) {
+ console.error('Error:', error);
+}