-
-
Save ann-mukundi/847d01f2bd84df3b15d9d7515b43b733 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
// 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!"