Uncaught TypeError: $(...).timepicker is not a function code example

Example 1: onehire:1770 Uncaught TypeError: $(...).datepicker is not a function

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

Example 2: uncaught TypeError: $ is not a function

(function($){

  $(document).ready(function(){
      // write code here
  });

  // or also you can write jquery code like this

  jQuery(document).ready(function(){
      // write code here
  });

})(jQuery);

Example 3: Uncaught TypeError: $ is not a function at

/Uncaught TypeError: $ is not a function

// Usually this is because Jquery doenst know what $ is 
// because it isn't described

jQuery(document).ready(function() {

	// In the brackets you write your Code
  	// for each new function you start with
  
  jQuery(window).scroll(function(){
	// etc..  
  )};

};
// If you are testing on a localhost dont forget to embed the latest jQuery