Challenges that need an output to the user need to be wrapped in console log.
See original GitHub issueThe 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:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can take it!
@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