JSFiddle - React, Tailwind, and code Playground

by ChangJoo Park

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.21.0/moment.min.js"></script>

JavaScript

const before = moment().subtract(1, 'month')
const after = moment().add(1, 'month')
console.log(before.get('month'))
console.log(after.get('month'))