question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Challenges that need an output to the user need to be wrapped in console log.

See original GitHub issue

The new challenge framework will no longer automatically infer the output of a challenge. These challenge will need to have their final statement wrapped in a console.log.

This can be done in parallel with the beta release.

For example:

This outputs the the return of factorialize(5) to the output box in the old framework. Not in the new.

function factorialize(num) {
  return num;
}

factorialize(5);

It should explicitly output to console like so:

function factorialize(num) {
  return num;
}

console.log(factorialize(5));

Most Javascript/Algorithm challenges will need to be updated. This can be done now without any adverse effect on the current site.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kmigdolcommented, Jun 25, 2016

I can take it!

0reactions
chiptuscommented, Oct 30, 2016

@Bouncey @BerkeleyTrue Probably will be good idea to separate this into sub tasks so more people can do it, and so we know which challenges should get this done

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Console.log() Example – How to Print to the ...
In this article, I'll show you how to print to the console in JS, as well as. ... But what if we have...
Read more >
Now that you're logging the property names, include the ...
Now that you're logging the property names, include the property values too. The console should display four lines that.
Read more >
Program output is wrapped in console : GO-9168 - YouTrack
In case of println and run output is wrapped around 80 character boundary. In case of debug it is wrapped around console width....
Read more >
A proper wrapper for console.log with correct line number?
This gist shows a minimalistic logging framework that offers modules, log levels, formatting, and proper clickable line numbers in 34 lines. Use it...
Read more >
The 10 Most Common JavaScript Issues Developers Face
If you need help figuring out why your JavaScript isn't working, ... If you guess that the console.log() call would either output undefined...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found