Skip to content
loading...

re: Should Pure Functions Be Self-contained VIEW POST

TOP OF THREAD FULL DISCUSSION
re: mmm you got me thinking. What if : var c = 0; var obj1 = { valueOf: function () { c++; return 1; } }...
 

I messed up the code format. Used from stack overflow... Sorry for asking this here, how can I format code in a comment?

The syntax highlight can be activated with a block closed in triple backticks, and optionaly a language name. Like this:

```javascript
console.log('hello');
// some code
```

Thank you sir. Sorry for the irrelevant question again.

code of conduct - report abuse