# JavaScript Practice

{% embed url="https://www.youtube.com/watch?v=N65RvNkZFGE&list=PLpc_YvcwbxaSn6jn0VaTcG8A0Grgs1GSB" %}



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.

{% embed url="https://eloquentjavascript.net/code/#2.2" %}

{% embed url="https://luiggiannes.me/eloquent-javascript-exercises-solutions/" %}

{% embed url="https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/fundamentals-part-2" %}

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

{% embed url="https://www.vikingcodeschool.com/software-engineering-basics/the-elements-of-pseudocode" %}

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.

![](https://4178747114-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXd9FZsxrESRpx9oFdw%2F-M_DIlr7EzrZGIgdDN4D%2F-M_M44Xrpbx_wUvZkLhj%2Fimage.png?alt=media\&token=24df8c08-7f7e-4afd-8c32-5b3e3bc81488)

