Creating a swap partition

How to create a swap partition on my raspberry pi:

    • More traditionally with a swap file(here or there)
    • Also, check this with regard to swappiness parameter