Title: Uncaught ReferenceError: foo is not defined
Last modified: October 13, 2017

---

# Uncaught ReferenceError: foo is not defined

 *  Resolved [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/)
 * (@oldrup)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-foo-is-not-defined/)
 * Hi
 * In Google Inspect tool this error is revealed:
 *     ```
       (index):80 Uncaught ReferenceError: foo is not defined
           at Object.callback ((index):80)
           at typed.min.js?ver=4.8.2:1
       ```
   
 * The function mentioned:
 *     ```
           jQuery(function($){
   
           $('.type-wrap').show();
   
               $('#typed').typed({
                   stringsElement: $('#typed-strings'),
                   typeSpeed: 65,
                   backDelay: 2500,
                   loop: false,
                   contentType: 'html', // or text
                   loopCount: false,
                   callback: function(){ foo(); },
                   resetCallback: function() { newTyped(); }
               });
   
               $('.reset').click(function(){
                   $('#typed').typed('reset');
               });
   
           });
       ```
   
 * Any ideas how to fix? The plugin works fine, but it’d be great if it didn’t trigger
   this errormessage…
    -  This topic was modified 8 years, 7 months ago by [Bjarne Oldrup](https://wordpress.org/support/users/oldrup/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kim Vinberg](https://wordpress.org/support/users/dicmdk/)
 * (@dicmdk)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-foo-is-not-defined/#post-10121007)
 * Hi Bjarne.
 * For some reason i did not get any notifications about this support question. 
   The error is simply that the function foo(); doesnt exists. I will check the 
   plugin to see if it is present and update if needed.
 * until i update, you can simply remove the mentioning of foo(); in the code.
 *  callback: function(){ foo(); },
 * to this:
 *  callback: function(){ },
 * If you need any help with this plugin please contact me 🙂

Viewing 1 replies (of 1 total)

The topic ‘Uncaught ReferenceError: foo is not defined’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-typed-js.svg)
 * [WP Typed JS](https://wordpress.org/plugins/wp-typed-js/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-typed-js/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-typed-js/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-typed-js/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-typed-js/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kim Vinberg](https://wordpress.org/support/users/dicmdk/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-foo-is-not-defined/#post-10121007)
 * Status: resolved