Hey guys I'm trying to convert a python program into js for my website but I have come into an issue where originally I was going to use objects for my alternative but I cant seem to find a way to get it to loop for as many people as there is in howMany. Does anyone have any ideas?
import math
from dataclasses import dataclass
@dataclass
class Person:
name: str
sharePercentage: float
howmany = int(input("How many holders of shares are there in your company >> "))
person = [Person("",0.0)for x in range(howmany)]