Use the conditional operator in the checkEqual function to check if two numbers are equal or not. The function should return either "Equal" or "Not Equal".
function checkEqual(a, b) {
return a === b ? "Equal" : "Not Equal";
}
Also in JavaScript:
- how to clone an object
- how to get text which is in input td using jquery
- javascript dynamically access object property
- js check if date is future
- casl react redux
- datatable loading
- how to access global scope in to local scope using javascript examples
- react native multiple touchableopacity
- jquery add element to array
- multithreading in javascript
- rails call multiple variable format json
- jstl spring taglib
- react native timed out waiting for modules to be invalidated
- moment use in angular
- javascript stringify an object
- javascript fibonacci
- get 13 digit timestamp javascript
- stop a setinterval
- javascript random 4 digit number
- pyspark from_json example
- dart list files in directory
- react function exec when button is clicked
- how react work
- javascript array contains object