Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript Tasks
- Write a JavaScript program to compare two objects to determine if the first one contains equivalent property values to the second one.
- Write a JavaScript program that accept two integers and display the larger.
- Write a JavaScript function to check whether an input is an array or not.
- Test Data :
- console.log(is_array('Telerik')); // false
- console.log(is_array([1, 2, 4, 0])); // true
- Write a JavaScript function to get the first element of an array. Passing a parameter 'n' will return the first 'n' elements of the array
- Write a JavaScript Function to display current date
- Write a JavaScript conditional statement to sort three numbers. Display an alert box to show the result.
- Write a JavaScript program to target a given value in a nested JSON object, based on the given key.
- Write a JavaScript program to generate a random hexadecimal color code.
- Write a JavaScript program to removes non-printable ASCII characters from a given string. Here is a list of these characters:
- äÄçÇéÉêw3resouröceÖÐþúÚ
- Write a JavaScript program to split values of two given arrays into two groups. If an element in filter is truthy, the corresponding element in the collection belongs to the first group; otherwise, it belongs to the second group.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement