Q:

Scroll programmatically to last column in table

in a table which has horizontal scrolling, how can one best jump to the last column without adding a specific ID/class/ref to the last column itself? 
E.g. I can do:
document.getElementsByClassName('makeStyles-tableCell-251')[document.getElementsByClassName('makeStyles-tableCell-251').length -1].scrollIntoView()

but instead I'd like to reference only the table. 
Thanks! 

A:

You're nearly there.  Try using the :last-child selector. 
document.querySelector('#table-you-want tbody tr:last-child').scrollIntoView()

