-
Notifications
You must be signed in to change notification settings - Fork 0
#shy-lizard npm-modules #2
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
base: empty1
Are you sure you want to change the base?
Conversation
implementing remaining functions
breyana
left a comment
There was a problem hiding this 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> | |||
There was a problem hiding this comment.
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' }); |
There was a problem hiding this comment.
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 ) { | |||
There was a problem hiding this comment.
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) | |||
There was a problem hiding this comment.
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){ | |||
There was a problem hiding this comment.
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) | |||
There was a problem hiding this comment.
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
|
thank you!...
…On Tue, Feb 21, 2017 at 9:49 AM, breyana ***@***.***> wrote:
***@***.**** requested changes on this pull request.
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.
------------------------------
In public/index.html
<#2 (comment)>:
> @@ -0,0 +1,5 @@
+<head>
+ <title> This is only a Test </title>
This is the only page that comes up when I attempt to load the site
------------------------------
In routes/index.js
<#2 (comment)>:
> @@ -0,0 +1,9 @@
+var express = require('express');
+var router = express.Router();
+
+/* GET home page. */
+router.get('/', function(req, res, next) {
+ res.render('index', { title: 'NPM Modules for JS' });
I think this is rendering index.html instead of index.pug?
------------------------------
In spec/camelcase.js
<#2 (comment)>:
> @@ -0,0 +1,6 @@
+module.exports =function ( str ) {
add a space after the equals sign
------------------------------
In spec/ceil.js
<#2 (comment)>:
> @@ -0,0 +1,3 @@
+module.exports = function (num1){
+ return Math.ceil(num1)
I'd try rewriting .ceil in code instead of using .ceil
------------------------------
In spec/divide.js
<#2 (comment)>:
> @@ -0,0 +1,4 @@
+module.exports = function(num1 , num2){
+ // 1.5){
Leave out comments in the final product
------------------------------
In spec/min.js
<#2 (comment)>:
> @@ -0,0 +1,6 @@
+module.exports = function min( inputArray ) {
+
+ return Math.min.apply(null, inputArray)
Try to rewrite .min instead of using .min
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APuAkAqo23hZOVa-IQyFGytF-YzZrQnpks5reyOTgaJpZM4MHmKH>
.
|
No description provided.