Run program problem solve

How can I run the program

Can you please be more detailed with your question?

Hey @mohitpanwar4646! Welcome to the community!

After looking at your Repls, I found some errors in your code, with the main one being you added slashes around your for loops, which you do not need to do so.

Since you are probably very new to coding, I helped you fix your code and format it:

for (let i = 0; i < 50; i++) {
	console.log(i + 1);
}

let sum = 0;
let n = prompt("enter the value of n");
n = Number.parseInt(n);
for (let i = 0; i < n; i++){
    sum += i + 1;
}
console.log("sum of " + n + " natural number is " + sum);

let object = {
    aqsa: 77,
    alishba: 65,
    iqra: 67,
};
for (let a in object) {
    console.log("marks of " + a + " are " + object[a]);
}

for (let a of "pakistan")
    console.log(a);

If you want to get a proper course on Javascript, I recommend going to the following tutorials below:

4 Likes