mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 04:56:23 +00:00
18 lines
300 B
Markdown
18 lines
300 B
Markdown
---
|
|
date: 2020-11-16
|
|
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)
|
|
```
|