Split from symbol

Report a typo

You need to use an appropriate JavaScript method on the string below so that the output of the below code will be the following: ['hello@yoursite', 'edu', 'co', 'mak'].

Sample Input 1:

Sample Output 1:

[ 'hello@yoursite', 'edu', 'co', 'mak' ]
Write a program in JavaScript
// Please don't modify the code below.
const string = input;
// Write your code below this line.
___

Create a free account to access the full topic