Which line of code should be used to make the following code snippet work?

```
var longString = "Great day, isn't it?";
var shortString = _____???_______
document.write("It's going ton rain to" + shortString);
```

a.
```
shortString = longString.substr(20, 7);
```

b.
```
shortString = longString.substr(6, 3);
```

c.
```
shortString = substr(longString, 6, 3);
```

d.
```
shortString = longString.substr(7, 3);
```


b.
```
shortString = longString.substr(6, 3);
```

Computer Science & Information Technology

You might also like to view...

Which of the following backups is the fastest to restore?

A) Full backup B) Incremental backup C) Differential backup D) All backups above take the same time to restore

Computer Science & Information Technology

Both System.out.println and System.out.print can be used to output a string on the standard output device.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The number of bits being transmitted at one time is dependent on the bus width.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Lisa, a technician, decides to upgrade a router before leaving for vacation. While away, users begin to report slow performance. Which of the following practices allows other technicians to quickly return the network to normal speeds?

A. Change management B. Baselines C. Asset management D. Cable management

Computer Science & Information Technology