During backpropagation the partial derivatives w.r.t. the weights and the bias will be calculated.
Both, the weights and bias term will get a valid gradient, and is trainable.
Have a look at this description 24 for more information.