Adding a jQuery Library to Magento 2

Add jQuery Library to Magento 2

<script type=”text/javascript”>

var config = {
map: {
‘*’: {
bannerslider: ‘Companyname_Modulename/js/flexslider’,
}
}
};

<script type=”text/javascript”>
require([‘jquery’,’bannerslider’],function($){
$(window).load(function() {
$(‘.flexslider-8’).flexslider({
animation: “fade”,
controlNav: “thumbnails”,
slideshowSpeed: 2000,
minItems: 2,
maxItems: 4
});
});
});
</script>