Skip to content

My shameless solution 🙈 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const { StackObj } = require ('./stack-obj');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No estás usando StackObj en la solución. Este challenge está en el contexto de la estructura de datos stack y como una aplicación.


function baseConverter(decNumber, base) {
// your code
return ;
if(base < 2 || base > 36) return null
return decNumber.toString(base).toUpperCase();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genial! Siempre es bueno revisar la documentación para no reinventar la rueda. Pero en este caso, para fines del ejercicio tienes que usar el StackObj y reiniventar la rueda.

}

module.exports = { baseConverter };
module.exports = { baseConverter };