Ternary project

Closed Posted 5 years ago Paid on delivery
Closed Paid on delivery

In this exercise, you will be completing each part within the same JavaScript file provided.

Part 1

Create a switch..case statement to check against highSchoolGrade and set yourGrade that accomplishes the following:

if 9 assign "Freshman" to the yourGrade variable

if 10 assign "Sophomore" to the yourGrade variable

if 11 assign "Junior" to the yourGrade variable

if 12 assign "Senior" to the yourGrade variable

include a default case that assigns "Invalid" to yourGrade.

Part 2

Leverage your knowledge of the JavaScript programming language to convert the following if..else into a ternary.

[login to view URL] file:

function name() {

if (firstName === "John") {

[login to view URL]("demo").innerHTML = "Hello John!";

}

else {

[login to view URL]("demo").innerHTML = "Hello Human!";

}

}

HTML Java JavaScript jQuery / Prototype PHP

Project ID: #17972121

About the project

17 proposals Remote project Active 5 years ago

17 freelancers are bidding on average $18 for this job

dobreiiita

Hello I am Java and Javascript expert and interested in this project. Please communicate to discuss further. Regards Anshu

$30 USD in 1 day
(431 Reviews)
7.5
kishan1383

Hello, I have understood your requirement and I am full time experienced web developer. If you want to check my previous work then you can check my portfolio for your reference, I have done many project in PHP and al More

$30 USD in 1 day
(12 Reviews)
3.8
jeraldpunx112

A professional full stack developer for almost 5 years, Graduated of Bachelor of Science in Information Technology and awarded as one of best IT programmer and best IT projects in the institute. Made a lot of big proje More

$25 USD in 1 day
(11 Reviews)
3.5
nrislam10

Hi, I think i can make your js file. please come in chat so that we can discuss about details. With best regards

$10 USD in 1 day
(5 Reviews)
1.9
bugraaydingoz

Hi, I understand you need to convert your code to ternary operator. I am an JS expert and I can finish it quickly. Send me a pm if you are interested. Best Regards, Bugra

$15 USD in 1 day
(1 Review)
0.4
amitkrmaurya321

It is very simple to do. I will give you the code with commenting and proper explanation.

$15 USD in 1 day
(0 Reviews)
0.0
AppTiwari

Dear respected, Please allow me to do this task. It's very easy task for me. I have eight years of experience in web development. I will complete this task effectively. I want to do it right now. Thank you.

$13 USD in 1 day
(0 Reviews)
0.0
jmpena1975

Greetings. I'm back in the programming's world and I want to gain experience again, that's why I offer a low cost. Test my skill and you will not regret it.

$20 USD in 2 days
(0 Reviews)
0.0
emilagren

I'm a frontend developer from Sweden who has been working daily with javascript for several years now. I have a 5-year education degree in engineering/programming. I would gladly help you with this task. A great solut More

$15 USD in 1 day
(0 Reviews)
0.0
cms2350

I can certainly help with your JavaScript project. I can complete this project in a very short amount of time.

$20 USD in 1 day
(0 Reviews)
0.0
mmedmaalej

Hello, I'm a computer scientist and software engineer. I Interviewed with top-tech companies in advanced rounds. I work mainly in Java and done a lot of projects using that language (web/ mobile). Let's chat late More

$25 USD in 1 day
(0 Reviews)
0.0