Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 327 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 327 Bytes

invert positive number

Build a function, invert_negatives, that takes a number as a parameter, and if the number is positive, it makes it negative. If it isn't a number, it returns false

- invert_negatives(-5)
	- Returns: -5
- invert_negatives(4000)
	- Returns: -4000
- invert_negatives('puppies')
	- Returns: false