© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Ram Chandna
Wanted to ask something.... Is a method which reverses a "given" Number pure Or impure... Because according to me it is returning same value for same input so it should be pure.... But then there is an argument that it might be impure
Tapas Adhikary
Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source
It's a pure function as long as it returns the same output for the same input. Btw, what did you mean by impure argument?