You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The console implementation is currently quite bare bones, and does not follow the specification.
The specification specifies log levels for each of the functions on console. These levels should be honoured except for console.debug which will have LogLevel::Debug.
In addition, a formatter should be implemented to format strings according to the %s, %d, %i, %f, %o, %O specifiers. Do note that %% stands for % in the final string. All arguments passed to the various logging functions that take variable arguments (varargs) should pass them to the formatter function to obtain the string. If possible, the %c specifier can also be implemented, but extra work will be required.
The formatter should also be exposed from js, either as console.format or in some other form.
Requirements: Basic in JavaScript, Basic in Rust Difficulty: Basic
The
console
implementation is currently quite bare bones, and does not follow the specification.The specification specifies log levels for each of the functions on
console
. These levels should be honoured except forconsole.debug
which will haveLogLevel::Debug
.In addition, a formatter should be implemented to format strings according to the
%s
,%d
,%i
,%f
,%o
,%O
specifiers. Do note that%%
stands for%
in the final string. All arguments passed to the various logging functions that take variable arguments (varargs) should pass them to the formatter function to obtain the string. If possible, the%c
specifier can also be implemented, but extra work will be required.The formatter should also be exposed from js, either as
console.format
or in some other form.Requirements: Basic in JavaScript, Basic in Rust
Difficulty: Basic
Resources
The text was updated successfully, but these errors were encountered: