Find the conjugate of a Complex number | Function to find conjugate of a complex number ; store index of ' + ' ; store index of ' - ' ; print the result ; Array of points
function solve ( s ) { let z = s ; var l = s . length ; var i ; if ( s . indexOf ( ' ' ) != - 1 ) { i = s . indexOf ( ' ' ) ; s = s . replace ( ' ' , ' ' ) ; } else { i = s . indexOf ( ' ' ) ; s = s . replace ( ' ' , ' ' ) ; } document . write ( " " + z + " " + s + " " ) ; } let s = " " ; solve ( s ) ;