Top answers

All subjects
Mentoring

How do you create objects in javascript?

Objects in JavaScript are defined differently to most other languages. You define (and create) a JavaScript object with an object literal:var person = {firstName:"John", lastName:"Doe"...

KN
Answered by Kelvin N. Javascript tutor
1098 Views

How would you loop over every key and value in a python dictionary?

The method depends on which python version you are using.For python 2.xfor key, value in d.iteritems() ... For python 3.xfor key, value in d.items() ... In both examples key, and value are just variable n...

KN
Answered by Kelvin N. Python tutor
1612 Views

Actor station: You are a medical student breaking bad news to a patient

remind yourself you are a medical student NOT a doctor, then start off by introducing yourself and ask the patient how aware they are of there current condition. Then ask them if they would like to bring ...

IR
1532 Views

Can I write about more than one subject in my Personal statement?

This is a common question. In the UK, UCAS applications should favour the one academic subject you are applying for. When writing my personal statement I created a structure that would help fit all the in...

RM
2162 Views

How would you change the background colour of a div with the id "colourme" to purple?

var div=document.getElementById("colourme"); div.style.backgroundColor = "purple"

GH
Answered by George H. Javascript tutor
1569 Views

We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2025 by IXL Learning