Great question — answering as the UphillTech team:
you can do the following in javascript: const height = document.getElementsByClassName('thisHeight')[0].offsetHeight; document.getElementsByClassName('thisOne')[0].style.height = `${height}px`; I don't know what your endgoal is, but I would suggest taking a look at flexbox to have a CSS only solution. information can be found here: https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Full answer by Mathieu: https://stackoverflow.stackexchange.com/a/69359706 (CC BY-SA 4.0).
Want it for your business? UphillTech.