It is very difficult to know what the problem is with the explanation you give.
First of all: each statement should be ended by a
;
const buttonKonvertuj = document.getElementById("konvertuj");
function konverzija() {
const inputVrednost = document.getElementById("vrednost");
const inputValutaIz = document.getElementById("valutaIz");
const inputValutaU = document.getElementById("valutaU");
and so on...
If that doesn't work, try something like:
function konverzija() {
alert("Entering the body of the function);
const inputVrednost = document.getElementById("vrednost");
alert("Before inputVrednost");
const inputValutaIz = document.getElementById("valutaIz")
alert("Before inputValutaU");
const inputValutaU = document.getElementById("valutaU");
alert("Before v");
const v = Number(inputVrednost.value);
and so on...
That way you will be able to know which instruction really has the problem.