Skip to content

Commit

Permalink
Valores truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
FROSTYLAN committed Aug 24, 2022
1 parent d52b98b commit c6c107b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions 03-JavascriptBásico/06-truthy.js
@@ -0,0 +1,32 @@
if (true) {
}

if ({}) {
}

if ([]) {
}

if (42) {
}

if ("foo") {
}

if (new Date()) {
}

if (-42) {
}

if (3.14) {
}

if (-3.14) {
}

if (Infinity) {
}

if (-Infinity) {
}

0 comments on commit c6c107b

Please sign in to comment.