syntax error in array. javascript-codewars challenge-"who likes it kata" : Im having trouble with input array, attempting a javascript challenge on CodeWars.

Here is the instruction: Implement a function likes :: [String] -> String, which must take in input array, containing the names of people who like an item. It must return the display text as shown in the examples:

       likes [] // must be "no one likes this"
       likes ["Peter"] // must be "Peter likes this"
       likes ["Jacob", "Alex"] // must be "Jacob and Alex like this"
       likes ["Max", "John", "Mark"] // must be "Max, John and Mark like this"
       likes ["Alex", "Jacob", "Mark", "Max"] // must be "Alex, Jacob and 2 others like this"

  basicliy its like the facebook like system. could someone please explain what im doing wrong.   Here is my try code 


      function likes (names) {
      var names[7];
      
      
     
     
     if ( names.length=0)
     
     
     {
     
     return "nobody likes this"
     
     }
     
     
     
     else if (names.length=1)
     
     {
     
    return names[0]+"likes this";
    }
    
    
    else if (names.length=2)
    
    {
    return names[0]+names[1]"like this"
    
    }
    
    
    
    else if (names.length=3)
    {
    
    return names[0]+''+names [1]+''+names[2]+''+ " likes this"
    
    }
    
    
    else (names.length >3)
    
    
    
    {
    
    
    return  names[0]+''+names [1]+''+ names.length-1 + "likes this"
    }

