Closed

Ternary project

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!";

}

}

Skills: HTML, Java, Javascript, jQuery / Prototype, PHP

See more: project management requirement exercise, project network diagram exercise, project management training exercise ppt, jinn ternary processor, iota ternary processor, jinn chip iota, ternary computer, jinn processor, accounting project in net, college management system project in net, free html project in, html project in table, junior farewell senior, project management training exercise, project case study exercise, junior speech senior farewell, android need developer to share a project in uk, automation testing project in freelancer, bootstrap admin project part #2, bootstrap admin project part 2

About the Employer:
( 3 reviews ) NORTH LAS VEGAS, United States

Project ID: #17972121

23 freelancers are bidding on average $19 for this job

BaNgan

Hi, In task1, should we list all the possible answer on console log or we use user input to produce the result? I can help you do it once you confirm the detail with me Thanks Ngan Le

$20 USD in 1 day
(278 Reviews)
7.1
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
(415 Reviews)
7.4
al2018

HI Dear. Nice to meet you. I read your project description carefully and I can complete your project correctly. I am a professional JavaScript/JQuery developer. Please award me. I can finish our project for a few More

$25 USD in 1 day
(28 Reviews)
5.1
brightstar928

dear I checked your post carefully. I can do that perfectly. Please contact me and discuss more Thank you.

$25 USD in 1 day
(20 Reviews)
4.0
godming728

Hello. This is the best partnerhip you need. I have rich experience of web development more than 10+ years.... (PHP/Laravel/HTML/CSS/Javascript/Jquery/Bootstrap) Honestly, I am sure about my skills. If you hold o More

$20 USD in 1 day
(10 Reviews)
3.7
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
(8 Reviews)
3.3
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
(1 Review)
2.6
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
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
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
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
AaronVolenec

//// Part 1 Answer //// switch (highSchoolGrade) { case 9: yourGrade = "Freshman"; break; case 10: yourGrade = "Sophomore"; break; case 11: yourGrade = "Junior"; More

$10 USD in 1 day
(0 Reviews)
0.0
cbecerrat

Hi: I have written the functions that you describe in the project: You can download an test it from here: [login to view URL]

$20 USD in 0 days
(0 Reviews)
0.0
ziankabir

Greetings! My name is Nazrul Kabir and I am an expert in web development. I would love to have the opportunity to discuss your project with you. I know I'm new in freelancing market but I believe my skills are a match More

$25 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
TeachSolutions

Here is your requested function for grade: function requestedScript(gradeNum){ var grade, yourGrade; grade = parseInt(gradeNum,10); switch(grade){ case 9: More

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

i will do my level best............................................................................................................................................................

$25 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
luispablovw

For the last 7 years I've been a fullstack developer, in Node.js projects (main tools: React for the UI and [login to view URL] for the backend) And I've also been JS professor for some local organizations, you can check the More

$10 USD in 1 day
(0 Reviews)
0.0