Try with asynchronous client-side geometry engine
geometryEngineAsync.intersect(line1, line2).then(
function (resint){
console.log(resint);
}
);
I think, if I can remember correctly, the output geometry type would be the same as the input type. So a line would need to sit directly on another line and you would get that intersect back. I don't think it would return a point where two lines intersect.