Abstraction in Javascript

Show necessary things only.

–JS file

function showOnly(){
	var name = 'show only';
	console.log(name);
	function hideonly(){
		var name2 = 'hide only';
		console.log(name2);
    }
}

Leave a Reply

Your email address will not be published. Required fields are marked *