What is the value of the function y=3x−1 when x=−1 ?
A−8
B−4
C2
D6
A−8
B−4
C2
D6