In order to select various node items please try using document.querySelectorAll('input') instead of document.querySelector('input').
Current code is only selecting one element therefore inputs.forEach() is throwing a Type Error because forEach is not a function of an element (you cannot iterate through one element). ↻
https://github.com/fed1k/Personal-Portfolio.github.io/blob/73379e90bce5d8a52b0d47f4c11d3758222f32ba/app.js#L190
In order to select various node items please try using
document.querySelectorAll('input')
instead ofdocument.querySelector('input')
. Current code is only selecting one element thereforeinputs.forEach()
is throwing a Type Error becauseforEach
is not a function of an element (you cannot iterate through one element). ↻