Apparently, "#myid::after" is not in the DOM tree, but following trick will allow you to get its properties:
var color = window.getComputedStyle(document.querySelector('#myid'), ':after').getPropertyValue('color')
var content = window.getComputedStyle(document.querySelector('#myid'), ':after').getPropertyValue('content')
console.log(color, content) // outputs the color and content of the pseudo-element
You might find it useful in test automation or some UI interaction manipulation.
We all know Node is single threaded, however, it's single threaded for a client (to you as a programmer), but the platform itself is multi-threaded (internally). In order to check how many threads your node is using on Linux machine you have 3 different options:
cat /proc/`pidof node`/status | grep Threads
ls /proc/19899/task/ | wc -l
ps hH p `pidof node` | wc -l
Sometimes, it come in handy when you want to automate the load monitoring for example.
One of these is the concept of truthy and falsy. These are sort of like true/false-lite, which will anger you somewhat if you majored in logic or philosophy. You mean you didn't know true and false were in fact gradable, not absolute concepts!?
var someVar = 0;
alert(someVar == false); //evaluates true
alert(false == false); //evaluates true, of course
alert(someVar === false); //evaluates false - someVar is a number, not a legitimate boolean
It gets worse
Clear enough? It gets more complex.