To find the slope of the line, pick two points on the line, such as (x1,y1)=(0,−2), and (x2,y2)=(1,0)(x2,y2)=(1,0) and use the slope formula:

\(\displaystyle{m}={\frac{{{y}{2}-{y}{1}}}{{{x}{2}-{x}{1}}}}={\frac{{{\left({0}-{\left(-{2}\right)}\right\rbrace}\frac{{{1}-{0}}}{=}{\frac{{{2}}}{{{1}}}}={2}}}{}}\)

\(\displaystyle{m}={\frac{{{y}{2}-{y}{1}}}{{{x}{2}-{x}{1}}}}={\frac{{{\left({0}-{\left(-{2}\right)}\right\rbrace}\frac{{{1}-{0}}}{=}{\frac{{{2}}}{{{1}}}}={2}}}{}}\)