Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. JavaScript Tasks
  2.  
  3.  
  4. Write a JavaScript program to compare two objects to determine if the first one contains equivalent property values to the second one.
  5.  
  6.  
  7. Write a JavaScript program that accept two integers and display the larger.
  8.  
  9.  
  10. Write a JavaScript function to check whether an input is an array or not.
  11.  
  12.  
  13. Test Data :
  14. console.log(is_array('Telerik')); // false
  15. console.log(is_array([1, 2, 4, 0])); // true
  16.  
  17.  
  18. 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
  19.  
  20.  
  21. Write a JavaScript Function to display current date
  22.  
  23.  
  24. Write a JavaScript conditional statement to sort three numbers. Display an alert box to show the result.
  25.  
  26.  
  27. Write a JavaScript program to target a given value in a nested JSON object, based on the given key.
  28.  
  29.  
  30. Write a JavaScript program to generate a random hexadecimal color code.
  31.  
  32.  
  33. Write a JavaScript program to removes non-printable ASCII characters from a given string. Here is a list of these characters:
  34.  
  35.  
  36. äÄçÇéÉêw3resouröceÖÐþúÚ
  37.  
  38. 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