Write your code and a Jest-like test script to verify its behavior.
function add(a, b) { return a + b; }
describe('add function', () => { it('should return 3 for add(1, 2)', () => { expect(add(1, 2)).toBe(3); }); it('should handle negative numbers', () => { expect(add(-1, -1)).toBe(-2); }); });