Skip to content

Commit

Permalink
JavaScript > Conditional Expression > fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMadWill committed Nov 18, 2021
1 parent b260e5b commit 96177c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@
// console.log(item)
// })

function cand(isAge){
return (isAge ? 25:30)
}

//
console.log(cand(true))
console.log(cand(false))


let age=25;

let age_name = (age>18)? "Adult":"Teenager";

console.log(age_name)
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
- [Slider Duration](https://github.com/DrMadWill/JavaScript/blob/main/11_Slider_App/Js/30_11_4_Slider_Duration.js)
- [My Documatation](https://github.com/DrMadWill/JavaScript/blob/main/Documantation/11_Slider_App/Silder_App.md)


- JQuery
-



Expand Down

0 comments on commit 96177c2

Please sign in to comment.