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...

The ________ keys on the keyboard allow a user to cycle through all open windows

A) Alt+Tab B) Ctrl+Shift C) Shift+Tab D) Alt+Ctrl

Computer Science & Information Technology

When a field has no value—a value that is unknown or unavailable or just missing—it is called a ____ value.

A. zero B. void C. null D. hidden

Computer Science & Information Technology