Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 303 Bytes

File metadata and controls

18 lines (16 loc) · 303 Bytes

Move Statements into a Function

Why?

  • You see the same code executed every time you call a particular function.

Benefits:

  • Remove duplicated code.

What?

-Move statements into a function.

How?

Sample

Before

After refactoring