Edit the following code block and make it shorter.
for (i=0; i<10; i++) {
    console.log("Hello World");
}
The code can be made shorter by using the `repeat` method for strings to log "Hello World" 10 times.

```js
console.log("Hello World\n".repeat(10))
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit the following code block and make it shorter.

### Input:
for (i=0; i<10; i++) {
    console.log("Hello World");
}

### Output:
The code can be made shorter by using the `repeat` method for strings to log "Hello World" 10 times.

```js
console.log("Hello World\n".repeat(10))
```