Freecodecamp: Where to Find Pipe Symbol

Created on 20 Mar 2017  路  2Comments  路  Source: freeCodeCamp/freeCodeCamp

Challenge Comparisons with the Logical Or Operator has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:


function testLogicalOr(val) {
  // Only change code below this line

  if (val < 10 || val > 20) {
    return "Outside";
  }



  // Only change code above this line
  return "Inside";
}

// Change this value to test
testLogicalOr(15);

//You should probably mention the name of the | symbol as "pipe" or "vertical bar", and indicate //where to find it on the keyboard. (The same is probably unnecessary for the "ampersand" & //symbol, though for consistency you might want to consider that addition too.)

help wanted

All 2 comments

@johnrayworth seems like a reasonable addition to the instructions :+1: And agreed, non-programmers rarely run into the opportunity that requires them to use the pipe symbol.

So for this challenge at least, the changes needed are instructing where to find the pipe symbol on a standard QWERTY keyboard. Something along the lines of:

The logical or opeator is composed of two pipe symbols, |. This can typically be found between your Backspace and Enter keys.

To whoever takes up this issue, please first read the contributing guidelines before taking care of this issue. And feel free to visit the Contributors Help chat room if you have any questions about helping. We're there to help.

I will take this.

Was this page helpful?
0 / 5 - 0 ratings