Skip to content

Instantly share code, notes, and snippets.

@ann-mukundi
Created January 23, 2018 13:43
Show Gist options
  • Save ann-mukundi/847d01f2bd84df3b15d9d7515b43b733 to your computer and use it in GitHub Desktop.
Save ann-mukundi/847d01f2bd84df3b15d9d7515b43b733 to your computer and use it in GitHub Desktop.
In the cp-readiness repo created in git and version control, create a branch called NODE. Use this branch for the exercise below.
Create a simple Node/Express web app as described in the article below https://stormpath.com/blog/build-nodejs-express-stormpath-app
@0xtruly
Copy link

0xtruly commented Jun 13, 2018

// Complete this function to return either
// "Hello, [name]!" or "Hello there!"
// based on the input
let assert = require("chai").assert;
assert.equal(sayHello("Qualified"), "Hello, Qualified!");
assert.equal(sayHello(""), "Hello there!");
function sayHello (name) {
// You can print to STDOUT for debugging like you normally would:
console.log(name);

// but you need to return the value in order to complete the challenge
return name; // TODO: return the correct value
}

please how do i modify the above code to log "Hello, Qualified!"

@iMichaelOwolabi
Copy link

On visiting the link above, it says that the article is old and redirected to https://developer.okta.com/blog/2018/06/28/tutorial-build-a-basic-crud-app-with-node
I tried to implement the solution on the initial link but got stuck at the point where I am supposed to authenticate my stormparth(Now Okta) API:KEY pair. Guess its part of the reasons it was noted on the page that the article is old. Heading on to the new page to implement the solution.

Thanks

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