wiki/content/20201116163925-infinity.md

19 lines
300 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-16
2024-05-06 20:40:05 +00:00
id: fd09c3db-f05d-4df2-9815-7ec4f88e341b
title: Infinity
---
# Description
Infinity and -Infinity represent positive and negative infinities
# Syntax
``` javascript
console.log(Infinity - 1)
console.log(Infinity + 1)
console.log(-Infinity - 1)
console.log(-Infinity + 1)
```