Last active
June 13, 2020 01:05
-
-
Save michaelenglo/dc01ece21b8301408c96c7cdeeac1423 to your computer and use it in GitHub Desktop.
What does this JS code evaluate to?
This file contains hidden or 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
const noOfShownComments = 5; | |
const commentsIds = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; | |
console.log(!!(noOfShownComments => commentsIds.length | |
? true | |
: false})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment