XM Interview Question

Tell me about the differences between two code snippets