(Google Interview Question)
var pivotIndex = function(nums) {
let leftSum = 0;
let n = nums.length;
let total = 0;
Matching an Email – /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/i
Regulare expression is a sequence of characters that specifies a search pattern in text. In my Regex Tutorial, I used /^([a-z0-9_.-]+)@([\da-z.-]+).([a-z.]{2,6})$/i to matching an email address. Any email address, can be used by a programmer to check whether the user entered a properly formatted email address, in juest one line of code.