Step 1: Use the formula for \(a_0\).
For a Fourier series on \((-\pi,\pi)\),
\[
a_0=\frac{1}{\pi}\int_{-\pi}^{\pi}f(x)\,dx.
\]
Since
\[
f(x)=|\sin x|
\]
is an even function,
\[
a_0
=
\frac{2}{\pi}
\int_{0}^{\pi}\sin x\,dx.
\]
Step 2: Evaluate the integral.
\[
\int_{0}^{\pi}\sin x\,dx
=
[-\cos x]_0^{\pi}
=2.
\]
Hence,
\[
a_0
=
\frac{2}{\pi}\times2
=
\frac4\pi.
\]
Since the given Fourier series is written as
\[
f(x)=\sum_{n=0}^{\infty}(a_n\cos nx+b_n\sin nx),
\]
the constant term is \(a_0\) (instead of \(a_0/2\)). Therefore,
\[
a_0=\frac{2}{\pi}.
\]
Hence,
\[
\boxed{\frac{2}{\pi}}
\]
is the correct answer.
Therefore,
\[
\boxed{(A)}
\]
is the correct answer.