
Hi, I am willing to accept your proposal, but u need to do it immediately?
- or -
Post a project like this$$
- Posted:
- Proposals: 5
- Remote
- #1435210
- Expired
Description
Experience Level: Intermediate
Create an object with two attributes name and email, which have your name(format:first.last) and email address respectively. And then assign the object to a variable called myInfo.
Write a function with the name checkEmail, which accept a string as argument and return a boolean to represent if the string contains the character '@'.
Call the function checkEmail with the email argument of myInfo and assign the return value to a variable called hasValidEmail.
Write another function with the name splitName to split a input name string into an array by the character '.'. Example: splitName("john.doe") -> ["john","doe"] and splitName("john.will.doe") -> ["john","will","doe"]
Call the function splitName with the name attribute of myInfo and assign the first element of the returning array to a variable called firstName.
feedback
Write a function with the name checkEmail, which accept a string as argument and return a boolean to represent if the string contains the character '@'.
Call the function checkEmail with the email argument of myInfo and assign the return value to a variable called hasValidEmail.
Write another function with the name splitName to split a input name string into an array by the character '.'. Example: splitName("john.doe") -> ["john","doe"] and splitName("john.will.doe") -> ["john","will","doe"]
Call the function splitName with the name attribute of myInfo and assign the first element of the returning array to a variable called firstName.
feedback
Taral G.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
0%
Last project
25 Jan 2017
Hong Kong
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

Hi Taral,
You need this to be done in which programming language ?
OR
Any programming language will work ?
Thanks
Sumit
SaS Technologies
302605
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies