IIFE Immediately Invoked Function Expressions Javascript

(function square(num) {
	console.log(num * num);
})(5); // can also pass arguments

Q. What will be the output of the following code?

(function (x) {
	return (function (y) {
		console.log(x); // 1
	})(2);
})(1);