How to use jquery library in Magento 2?

Use jquery library in Magento 2

require([‘jquery’, ‘jquery/ui’], function($){
//your js code here
});

Example 

require([‘jquery’, ‘jquery/ui’], function($){
jQuery(document).ready( function() {
alert(“Hello”);
});
});