These are chat archives for FreeCodeCamp/Help
get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
The indexOf() method returns the first index at which a given element can be found in the array, or -1 if it is not present.
Does anyone happen to know how--using the node.js command prompt screen and not the windows cmd prompt--to run commands from a subdirectory within the home directory. Unfortunately, I'm running xp and there is an error preventing the execution of js from cmd. Anyway, the path to the home directory looks like this:
C:\Documents and Settings\Evan>
The nodeschool how-to-npm workshop wants me to install package.json into a new directory and I don't know how or if it is possible to do that from the node.js command prompt.
Anyone happen to know?