Check whether two straight lines are parallel or not | Function to check if two lines are parallel or not ; If slopes are equal ; Driver Code ; Function Call
function parallel ( a1 , b1 , c1 , a2 , b2 , c2 ) { if ( ( - ( a1 / b1 ) ) == ( - ( a2 / b2 ) ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; } } let a1 = - 2 , b1 = 4 , c1 = 5 ; let a2 = - 6 , b2 = 12 , c2 = 6 ; parallel ( a1 , b1 , c1 , a2 , b2 , c2 ) ;