JavaScript Practice

What is the value of:

> "2" + "2"

Write a function to print display the current date

Write a function to return the extension of a filename

Write a function that converts every even letter in a string to uppercase

Write a function that accepts a string and returns the first half (even number of characters).

Write a function that returns the last 3 characters in a string

Write a function that counts the occurrences of a specified character

Write a function to loop through an array of numbers and return the sum of the values.

Write a function that checks for duplicates in an array

Write a function that returns true or false if the array is sorted

Write a function that returns true if two objects have the same properties and no extras.

Write a JavaScript function that returns true if the provided predicate function returns true for all elements in a collection, false otherwise.

Write a JavaScript function that returns a passed string with letters in alphabetical order. Example string: 'webmaster' Expected Output: 'abeemrstw'

Write a function to count the occurrence of each character in the string.

Loop through the properties of the supplied object and print out the name and datatype of each.

Write a function that prompts the user for the child's height in inches and whether the parent gives permission to go on the ride, and the return whether the child can go on the ride.

Last updated