DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
JAVASCRIPT
Use multiple conditional operators in the checkSign function to check if a number is positive, negative or zero. The function should return "positive", "negative" or "zero".
function checkSign(num) { return (num > 0) ? 'positive' : (num < 0) ? 'negative' : 'zero'; }
Comment
PREVIOUS
NEXT
Code Example
Javascript ::
string to title case javascript
Javascript ::
js keydown only once
Javascript ::
array left rotation javascript
Javascript ::
call javascript function after div load
Javascript ::
moment to date
Javascript ::
how to cut a string in js
Javascript ::
how to make stairs in javascript
Javascript ::
moment use in angular
Javascript ::
random number in range js
Javascript ::
how to iterate through an array in javascript
Javascript ::
import { Application } from "express"
Javascript ::
select add option javascript
Javascript ::
js import jquery
Javascript ::
javascript insert last character of string
Javascript ::
dayjs timezone
Javascript ::
moment month start date and end date
Javascript ::
Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
Javascript ::
how to return json response in flask
Javascript ::
moment get week
Javascript ::
ReferenceError
Javascript ::
axios withcredentials
Javascript ::
react check if in mobile
Javascript ::
encode in javascript
Javascript ::
in puppeteer wait for page untile certain selector have certain value
Javascript ::
how to detect if ios is in dark mode react native
Javascript ::
javascript ascending and descending
Javascript ::
disable formcontrol angular
Javascript ::
encrypt data using SHA256 algorithm in JavaScript
Javascript ::
how to run nextjs in another port
Javascript ::
vscode regex replace only group
ADD CONTENT
Topic
Open this select type
Abap
Actionscript
Assembly
Basic
C
Clojure
Cobol
Cpp
Csharp
Css
Dart
Elixir
Erlang
Excel
Gdscript
Html
Java
Javascript
Lisp
Lua
Matlab
Pascal
Perl
Php
Powershell
Python
R
Ruby
Rust
Scala
Shell
Sql
Swift
Typescript
Content
Source link
Name
1+9 =
Submit