Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var saiful = ["saiful","saiful","saiful","saiful",545,2354,553,754,2535,"saiful","saiful","arif","saiful"],loop;
- for (loop = 0; loop <saiful.length; loop++) {
- if(saiful[loop] == 'saiful'){
- console.log("Welcome to my house.");
- } else {
- //continue;
- }
- console.log("the current name is " + loop + "\n");}
- VM549:6 Welcome to my house.
- VM549:10 the current name is 0
- VM549:6 Welcome to my house.
- VM549:10 the current name is 1
- VM549:6 Welcome to my house.
- VM549:10 the current name is 2
- VM549:6 Welcome to my house.
- VM549:10 the current name is 3
- VM549:10 the current name is 4
- VM549:10 the current name is 5
- VM549:10 the current name is 6
- VM549:10 the current name is 7
- VM549:10 the current name is 8
- VM549:6 Welcome to my house.
- VM549:10 the current name is 9
- VM549:6 Welcome to my house.
- VM549:10 the current name is 10
- VM549:10 the current name is 11
- VM549:6 Welcome to my house.
- VM549:10 the current name is 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement