Skip to content

Commit

Permalink
Merge pull request #275 from Benappiahpoku/patch-13
Browse files Browse the repository at this point in the history
Update Question 349 README.md
  • Loading branch information
sudheerj committed Jun 12, 2024
2 parents 9b192d9 + c1cfe12 commit 14ee5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6349,7 +6349,7 @@
Let's take console statement with unary operator as given below,
```javascript
console.log(+"Hello");
console.log(+"Hello"); // NaN
```
The output of the above console log statement returns NaN. Because the element is prefixed by the unary operator and the JavaScript interpreter will try to convert that element into a number type. Since the conversion fails, the value of the statement results in NaN value.
Expand Down

0 comments on commit 14ee5c2

Please sign in to comment.