Can you chain traversal methods?

Question

In the context of this exercise, can you chain traversal methods?

Answer

Yes, you can chain tree traversal methods with each other, as well as with the jQuery CSS methods.

For instance, the following would be a valid statement,

$('element').closest().parent().next().toggleClass('className');