int x = foo();  /* This is a comment  This is not code
  Continuation of comment */
int y = bar();

  1. // Create a callback which logs the current auth state
  2. function authDataCallback(authData) {
  3. if (authData) {
  4. console.log("User " + authData.uid + " is logged in with " + authData.provider);
  5. } else {
  6. console.log("User is logged out");
  7. }
  8. }
  9. // Register the callback to be fired every time auth state changes
  10. var ref = new Firebase("https://<YOUR-FIREBASE-APP>.firebaseio.com");
  11. ref.onAuth(authDataCallback);

No comments