Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
basic math with javascript - Kevin Powell - Community
KP-C
Kevin Powell - Community
โข
3y ago
โข
6 replies
Omar ;)
basic math with javascript
I
'm new to JavaScript and i made this website that calculates the slope of a straight line
, the formula is y2
-y1
/x2
-x1
, i was wondering how i can make it work with negative numbers without making it 4 inputs
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time ๐.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Help with math in SCSS
KP-C
Kevin Powell - Community / front-end
3y ago
Charts with JavaScript
KP-C
Kevin Powell - Community / front-end
3y ago
Math.round()
KP-C
Kevin Powell - Community / front-end
2y ago
math.random()
KP-C
Kevin Powell - Community / front-end
3y ago