Why JavaScript type=module is needed in a tag? | by Lovepreet Singh ...

Why JavaScript type=module is needed in a tag? | by Lovepreet Singh ...