Skip to content

LibardoAhumada/javascript_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

JAVASCRIPT PRACTICE

Exercise for Javascript Class


Requirements:


1.- create a function that receives a name and does the following:


if the name has more than 5 letters, print on screen "name is long" if not, print "name is short"


2.- Create a function that receives 2 numbers and returns a text based on the following conditions:

if result is even, return "your result is even"

if non, return "result is non"


3.- Create a function that receives the name and surname of a person and returns the number of characters of the full name


4.- We need to know of any string, the character that is in any position that we indicate.


Example: if the position exceeds the number of characters, indicate that it is not possible to execute the exercise.


5.- We need to know if any text has another string inside.

"Israel" "ra" - if included

"Israel" "ac" - does not include it.


6.- I need to know the number of words in any text


7.- I need to replace all the matches of a word within a text, with another text

"my dog is gray and is a pain" "is" "is not"

"my dog is not gray and he is not a nuisance"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published