Skip to content

Conversation

@debrayc
Copy link
Owner

@debrayc debrayc commented Feb 21, 2017

No description provided.

Copy link

@breyana breyana left a comment

Choose a reason for hiding this comment

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

Overall, try to rewrite the methods when doing NPM modules instead of using the methods. Also, when making tests, try to have more than one test case. Try to break your code by doing edge cases.

@@ -0,0 +1,5 @@
<head>
<title> This is only a Test </title>
Copy link

Choose a reason for hiding this comment

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

This is the only page that comes up when I attempt to load the site


/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'NPM Modules for JS' });
Copy link

Choose a reason for hiding this comment

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

I think this is rendering index.html instead of index.pug?

@@ -0,0 +1,6 @@
module.exports =function ( str ) {
Copy link

Choose a reason for hiding this comment

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

add a space after the equals sign

@@ -0,0 +1,3 @@
module.exports = function (num1){
return Math.ceil(num1)
Copy link

Choose a reason for hiding this comment

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

I'd try rewriting .ceil in code instead of using .ceil

@@ -0,0 +1,4 @@
module.exports = function(num1 , num2){
 // 1.5){
Copy link

Choose a reason for hiding this comment

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

Leave out comments in the final product

@@ -0,0 +1,6 @@
module.exports = function min( inputArray ) {

return Math.min.apply(null, inputArray)
Copy link

Choose a reason for hiding this comment

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

Try to rewrite .min instead of using .min

@debrayc
Copy link
Owner Author

debrayc commented Feb 21, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants