In Python I use "for x in range(j)" and j is defined from user input, for example
j = int(input())
for x in range(j)
print(j)
if I input j as 3, the output will be
3
3
3
My question is, how do i do it with javascript?
I tried to do it with array, etc. Nothing seems to work, sorry im really new at coding and need to learn 2 programming language for my college