Question: [![enter image description here](https://i.stack.imgur.com/B6KHS.png)](https://i.stack.imgur.com/B6KHS.png)

How can I get cell A3 to reflect the the highest value in terms of the bigger numerical number of cloumn A be it a positive or negative value?

Answer: 
The event listener and emitter can be in two different files. Please see a simple example below: 

The first file, let's call it *eventEx.js*

```
 var EventEmitter = require('events').EventEmitter

   var myEmitter = new EventEmitter();

   myEmitter.on('print', (arg) => {
    console.log(arg);
   })

   exports.myEmitter = myEmitter

```

And the second file is as following:

```
var emitter = require('./eventEx.js')
var printEmitter = emitter.myEmitter

printEmitter.emit('print', 'how was Dunkirk?')
printEmitter.emit('print', 'Dunkirk was awesome!!')

```
just another example of node.js event listener in another source file typescript styles.

```
// file 1 (whatever.ts)
import EventEmitter from "events";
const MyEvent = new EventEmitter();
...
// somewhere fire event 
MyEvent.emit('push', 'message', {
  data: somedata
})
// end of file
export const MyEvents = MyEvent;

```

then in file 2

```
 // note the .js as eslint will cry 
 import { MyEvents  }  from '../whatever.js'
...
MyEvents.on('push', function(event, data) {
  console.log(event);
  console.log(data);
 // do stuff
});

```