@Barmar If you read it, you'd see under Parameters that he split method treats the separator as a regular expression, allowing the OP to write their own rules on how to split.
var name="listLongueurs";
var nameArr = name.split(/(?=[A-Z])/);
var list = nameArr[0];
var Longueurs= nameArr[1];
console.log(list);
console.log(Longueurs);
Your solution only works on that one specific example, which is likely just a minimal, reproducible example used to demonstrate the problem OP is trying to solve. Meaning that your solution doesn't work outside of the example, and is therefore not a solution.
Actually, this is exactly what was asked for. While I agree that it is likely that an answer related to capitalization is important, punishing a low answer count user for providing a valid answer to the question as stated seems vindictive.
@JonSG It's not meant to be vindictive. It's meant to entice the practice of providing minimal, reproducible examples (MRE). If people come here with questions and are repeatedly told to provide MRE, but are then presented with answers that only address the MRE, they're no longer incentivized to provide such simple examples. Providing an MRE is absolutely desirable, and in my opinion those providing solutions on the site should try to incorporate that into their answer.
There's no indication of what OP wants to split on. It could be a pattern or they could just have one single string in their program that they want to split and don't know how. In this case, an MRE was not provided because the example provided gives no indication of what OP actually wants to do.
Parametersthat he split method treats the separator as a regular expression, allowing the OP to write their own rules on how to split.